Java 类com.amazonaws.services.kinesisfirehose.AmazonKinesisFirehoseClient 实例源码

项目:bender    文件:FirehoseTransportFactory.java   
@Override
public void setConf(AbstractConfig config) {
  this.config = (FirehoseTransportConfig) config;
  this.serializer = new FirehoseTransportSerializer(this.config.getAppendNewline());
  this.client = new AmazonKinesisFirehoseClient(new ClientConfiguration().withGzip(true));

  if (this.config.getRegion() != null) {
    this.client.withRegion(this.config.getRegion());
  }
}
项目:kinesis-kafka-connector    文件:FirehoseSinkTask.java   
@Override
public void start(Map<String, String> props) {

    batch = Boolean.parseBoolean(props.get(FirehoseSinkConnector.BATCH));

    batchSize = Integer.parseInt(props.get(FirehoseSinkConnector.BATCH_SIZE));

    batchSizeInBytes = Integer.parseInt(props.get(FirehoseSinkConnector.BATCH_SIZE_IN_BYTES));

    deliveryStreamName = props.get(FirehoseSinkConnector.DELIVERY_STREAM);

    firehoseClient = new AmazonKinesisFirehoseClient(new DefaultAWSCredentialsProviderChain());

    firehoseClient.setRegion(RegionUtils.getRegion(props.get(FirehoseSinkConnector.REGION)));

    // Validate delivery stream
    validateDeliveryStream();
}
项目:bender    文件:FirehoseTransport.java   
protected FirehoseTransport(AmazonKinesisFirehoseClient client, String deliveryStreamName) {
  this.client = client;
  this.deliveryStreamName = deliveryStreamName;
}
项目:aws-big-data-blog    文件:KinesisToFirehose.java   
private void setup(){
    firehoseClient = new AmazonKinesisFirehoseClient();
    firehoseClient.setEndpoint(firehoseEndpointURL);
    checkHoseStatus();
}