public static Source getSource(String sourceLocation, Collection<Source> sources) { return getSource(sourceLocation, sources, true); } }
public static Source getSource(String sourceLocation, Collection<Source> sources) { return getSource(sourceLocation, sources, true); } }
public void handler(DynamodbEvent event, Context context) throws HandlerException { if (!initialized) { init(context); } this.recordIterator = new DynamodbEventIterator( new LambdaContext(context), event.getRecords()); DynamodbStreamRecord firstRecord = event.getRecords().get(0); this.source = SourceUtils.getSource(firstRecord.getEventSourceARN(), sources); super.process(context); }
public void handler(DynamodbEvent event, Context context) throws HandlerException { if (!initialized) { init(context); } this.recordIterator = new DynamodbEventIterator( new LambdaContext(context), event.getRecords()); DynamodbStreamRecord firstRecord = event.getRecords().get(0); this.source = SourceUtils.getSource(firstRecord.getEventSourceARN(), sources); super.process(context); }
record.getS3().getObject().getKey()); try { this.source = SourceUtils.getSource(s3Path, this.sources); } catch (SourceNotFoundException e) { logger.warn("Skipping processing " + s3Path);
record.getS3().getObject().getKey()); try { this.source = SourceUtils.getSource(s3Path, this.sources); } catch (SourceNotFoundException e) { logger.warn("Skipping processing " + s3Path);
s3Record.getS3().getObject().getKey()); try { this.source = SourceUtils.getSource(s3Path, this.sources); } catch (SourceNotFoundException e) { logger.warn("skipping processing " + s3Path);
s3Record.getS3().getObject().getKey()); try { this.source = SourceUtils.getSource(s3Path, this.sources); } catch (SourceNotFoundException e) { logger.warn("skipping processing " + s3Path);
public void handler(KinesisEvent event, Context context) throws HandlerException { if (!initialized) { init(context); } KinesisHandlerConfig handlerConfig = (KinesisHandlerConfig) this.config.getHandlerConfig(); this.recordIterator = new KinesisEventIterator(new LambdaContext(context), event.getRecords(), handlerConfig.getAddShardIdToPartitions()); /* * Get processors based on the source stream ARN */ KinesisEventRecord firstRecord = event.getRecords().get(0); this.source = SourceUtils.getSource(firstRecord.getEventSourceARN(), sources); super.process(context); }
public void handler(KinesisEvent event, Context context) throws HandlerException { if (!initialized) { init(context); } KinesisHandlerConfig handlerConfig = (KinesisHandlerConfig) this.config.getHandlerConfig(); this.recordIterator = new KinesisEventIterator(new LambdaContext(context), event.getRecords(), handlerConfig.getAddShardIdToPartitions()); /* * Get processors based on the source stream ARN */ KinesisEventRecord firstRecord = event.getRecords().get(0); this.source = SourceUtils.getSource(firstRecord.getEventSourceARN(), sources); super.process(context); }