public class PushSourceRunner extends StageRunner<com.streamsets.pipeline.api.PushSource> implements com.streamsets.datacollector.runner.PushSourceContextDelegate
| Modifier and Type | Class and Description |
|---|---|
static class |
PushSourceRunner.Builder |
static interface |
PushSourceRunner.Callback
Interface that caller needs to implement to get produced data.
|
StageRunner.Outputstatus| Constructor and Description |
|---|
PushSourceRunner(Class<com.streamsets.pipeline.api.PushSource> stageClass,
Map<String,Object> configuration,
List<String> outputLanes,
boolean isPreview,
com.streamsets.pipeline.api.OnRecordError onRecordError,
Map<String,Object> constants,
Map<String,String> stageSdcConf,
com.streamsets.pipeline.api.ExecutionMode executionMode,
com.streamsets.pipeline.api.DeliveryGuarantee deliveryGuarantee,
String resourcesDir,
com.streamsets.datacollector.main.RuntimeInfo runtimeInfo,
List<ServiceRunner> services) |
PushSourceRunner(Class<com.streamsets.pipeline.api.PushSource> stageClass,
com.streamsets.pipeline.api.PushSource stage,
Map<String,Object> configuration,
List<String> outputLanes,
boolean isPreview,
com.streamsets.pipeline.api.OnRecordError onRecordError,
Map<String,Object> constants,
Map<String,String> stageSdcConf,
com.streamsets.pipeline.api.ExecutionMode executionMode,
com.streamsets.pipeline.api.DeliveryGuarantee deliveryGuarantee,
String resourcesDir,
com.streamsets.datacollector.main.RuntimeInfo runtimeInfo,
List<ServiceRunner> services) |
| Modifier and Type | Method and Description |
|---|---|
void |
commitOffset(String entityName,
String entityOffset) |
Map<String,String> |
getOffsets()
Return offsets that were committed by the origin on last execution.
|
boolean |
processBatch(com.streamsets.pipeline.api.BatchContext batchContext,
String entityName,
String entityOffset) |
void |
runProduce(Map<String,String> lastOffsets,
int maxBatchSize,
PushSourceRunner.Callback callback) |
void |
setStop()
Graceful shutdown.
|
com.streamsets.pipeline.api.BatchContext |
startBatch() |
void |
waitOnProduce()
Wait on the origin's thread to finish.
|
clearErrors, clearEvents, clearLineageEvents, getContext, getErrorRecords, getErrors, getEventRecords, getInfo, getLineageEvents, getSourceResponseSink, getStage, runDestroy, runInit, runValidateConfigs, setSourceResponseSinkconfigureObjectpublic PushSourceRunner(Class<com.streamsets.pipeline.api.PushSource> stageClass, Map<String,Object> configuration, List<String> outputLanes, boolean isPreview, com.streamsets.pipeline.api.OnRecordError onRecordError, Map<String,Object> constants, Map<String,String> stageSdcConf, com.streamsets.pipeline.api.ExecutionMode executionMode, com.streamsets.pipeline.api.DeliveryGuarantee deliveryGuarantee, String resourcesDir, com.streamsets.datacollector.main.RuntimeInfo runtimeInfo, List<ServiceRunner> services)
public PushSourceRunner(Class<com.streamsets.pipeline.api.PushSource> stageClass, com.streamsets.pipeline.api.PushSource stage, Map<String,Object> configuration, List<String> outputLanes, boolean isPreview, com.streamsets.pipeline.api.OnRecordError onRecordError, Map<String,Object> constants, Map<String,String> stageSdcConf, com.streamsets.pipeline.api.ExecutionMode executionMode, com.streamsets.pipeline.api.DeliveryGuarantee deliveryGuarantee, String resourcesDir, com.streamsets.datacollector.main.RuntimeInfo runtimeInfo, List<ServiceRunner> services)
public void runProduce(Map<String,String> lastOffsets, int maxBatchSize, PushSourceRunner.Callback callback) throws com.streamsets.pipeline.api.StageException
com.streamsets.pipeline.api.StageExceptionpublic void setStop()
public void waitOnProduce()
throws ExecutionException,
InterruptedException
public com.streamsets.pipeline.api.BatchContext startBatch()
startBatch in interface com.streamsets.datacollector.runner.PushSourceContextDelegatepublic boolean processBatch(com.streamsets.pipeline.api.BatchContext batchContext,
String entityName,
String entityOffset)
processBatch in interface com.streamsets.datacollector.runner.PushSourceContextDelegatepublic void commitOffset(String entityName, String entityOffset)
commitOffset in interface com.streamsets.datacollector.runner.PushSourceContextDelegateCopyright © 2019 StreamSets. All rights reserved.