Java 类com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessor 实例源码

项目:aws-kinesis-beanstalk-workers    文件:ManagedClientProcessorFactory.java   
/**
 * {@inheritDoc}
 */
public IRecordProcessor createProcessor() {
    try {
        LOG.info("Creating new Managed Client Processor");
        ManagedClientProcessor p = this.managedProcessor.copy();
        createdProcessors.put(p.toString(), p);
        return p;
    } catch (Exception e) {
        LOG.error(e);
        return null;
    }
}
项目:ingestion-service    文件:RecordFactory.java   
@Override
public IRecordProcessor createProcessor() {
    logger.info("Creating RecordProcessor");
    if (recordProcessor == null) {
        recordProcessor = new RecordProcessor();
    }
    return recordProcessor;
}
项目:sumologic-kinesis-connector    文件:KinesisConnectorRecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    try {
        IBuffer<T> buffer = pipeline.getBuffer(configuration);
        IEmitter<U> emitter = pipeline.getEmitter(configuration);
        ITransformerBase<T, U> transformer = pipeline.getTransformer(configuration);
        IFilter<T> filter = pipeline.getFilter(configuration);
        KinesisConnectorRecordProcessor<T, U> processor =
                new KinesisConnectorRecordProcessor<T, U>(buffer, filter, emitter, transformer, configuration);
        return processor;
    } catch (Throwable t) {
        throw new RuntimeException(t);
    }
}
项目:flume-kinesis    文件:RecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    return new FlumeSourceRecordProcessor(chProcessor,
                                          serializer,
                                          backOffTimeInMillis,
                                          numberRetries,
                                          checkpointIntervalMillis);
}
项目:amazon-kinesis-aggregators    文件:AggregatorProcessorFactory.java   
/**
 * {@inheritDoc}
 */
public IRecordProcessor createProcessor() {
    try {
        // every time we create a new processor instance, we have to embed a
        // new instance of the AggregatorGroup, to eliminate any thread
        // contention
        return new AggregatorProcessor(new AggregatorGroup(this.aggregators));
    } catch (Exception e) {
        LOG.error(e);
        return null;
    }
}
项目:aws-big-data-blog    文件:ManagedClientProcessorFactory.java   
/**
 * {@inheritDoc}
 */
public IRecordProcessor createProcessor() {
    try {
        LOG.info("Creating new Managed Client Processor");
        ManagedClientProcessor p = this.managedProcessor.copy();
        createdProcessors.put(p.toString(), p);
        return p;
    } catch (Exception e) {
        LOG.error(e);
        return null;
    }
}
项目:spark-cstar-canaries    文件:EventRecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    return new EventRecordProcessor(receiver, workerId,
                            new KinesisCheckpointState(checkpointInterval));
}
项目:dynamodb-streams-kafka    文件:KafkaForwardingStreamsRecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    return new KafkaForwardingStreamsRecordProcessor(props, topic);
}
项目:awsbigdata    文件:Factory.java   
@Override
public IRecordProcessor createProcessor() {
    return new Processor();
}
项目:aws-big-data-blog    文件:KinesisRecordProcessorFactory.java   
/**
 * {@inheritDoc}
 */
public IRecordProcessor createProcessor() {
    return new KinesisRecordProcessor(redisEndpoint, redisPort);
}
项目:aws-big-data-blog    文件:StreamsRecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    return new StreamsRecordProcessor(cache);
}
项目:micro-genie    文件:KinesisRecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    return new KinesisRawEventRecordProcessor(this.topic, this.handler, this.mapper);
}
项目:Surf    文件:RecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    return new RecordProcessor(_buffer);
}
项目:Surf    文件:RecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    return new RecordProcessor(_buffer);
}
项目:aws-dynamodb-examples    文件:StreamsRecordProcessorFactory.java   
@Override
public IRecordProcessor createProcessor() {
    AmazonDynamoDBClient dynamoDBClient = new AmazonDynamoDBClient(dynamoDBCredentials, new ClientConfiguration());
    dynamoDBClient.setEndpoint(dynamoDBEndpoint);
    return new StreamsRecordProcessor(dynamoDBClient, tableName);
}
项目:tweetamo    文件:TweetamoRecordProcessorFactory.java   
/**
 * {@inheritDoc}
 */
@Override
public IRecordProcessor createProcessor() {
    return new TweetamoRecordProcessor();
}