public class FlowRunnerImpl extends java.lang.Object implements FlowRunner
| Constructor and Description |
|---|
FlowRunnerImpl(HubConfig hubConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitCompletion()
Blocks until the job is complete.
|
void |
awaitCompletion(long timeout,
java.util.concurrent.TimeUnit unit)
Blocks until the job is complete.
|
FlowRunner |
onFinished(FlowFinishedListener listener) |
FlowRunner |
onItemComplete(FlowItemCompleteListener listener) |
FlowRunner |
onItemFailed(FlowItemFailureListener listener) |
FlowRunner |
onStatusChanged(FlowStatusListener listener) |
com.marklogic.client.datamovement.JobTicket |
run() |
FlowRunner |
withBatchSize(int batchSize) |
FlowRunner |
withDestinationDatabase(java.lang.String destinationDatabase) |
FlowRunner |
withFlow(Flow flow) |
FlowRunner |
withOptions(java.util.Map<java.lang.String,java.lang.Object> options) |
FlowRunner |
withSourceClient(com.marklogic.client.DatabaseClient sourceClient) |
FlowRunner |
withStopOnFailure(boolean stopOnFailure) |
FlowRunner |
withThreadCount(int threadCount) |
public FlowRunnerImpl(HubConfig hubConfig)
public FlowRunner withFlow(Flow flow)
withFlow in interface FlowRunnerpublic FlowRunner withBatchSize(int batchSize)
withBatchSize in interface FlowRunnerpublic FlowRunner withThreadCount(int threadCount)
withThreadCount in interface FlowRunnerpublic FlowRunner withSourceClient(com.marklogic.client.DatabaseClient sourceClient)
withSourceClient in interface FlowRunnerpublic FlowRunner withDestinationDatabase(java.lang.String destinationDatabase)
withDestinationDatabase in interface FlowRunnerpublic FlowRunner withStopOnFailure(boolean stopOnFailure)
withStopOnFailure in interface FlowRunnerpublic FlowRunner withOptions(java.util.Map<java.lang.String,java.lang.Object> options)
withOptions in interface FlowRunnerpublic FlowRunner onItemComplete(FlowItemCompleteListener listener)
onItemComplete in interface FlowRunnerpublic FlowRunner onItemFailed(FlowItemFailureListener listener)
onItemFailed in interface FlowRunnerpublic FlowRunner onStatusChanged(FlowStatusListener listener)
onStatusChanged in interface FlowRunnerpublic FlowRunner onFinished(FlowFinishedListener listener)
onFinished in interface FlowRunnerpublic void awaitCompletion()
FlowRunnerawaitCompletion in interface FlowRunnerpublic void awaitCompletion(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
FlowRunnerawaitCompletion in interface FlowRunnertimeout - the maximum time to waitunit - the time unit of the timeout argumentjava.lang.InterruptedException - if interrupted while waitingpublic com.marklogic.client.datamovement.JobTicket run()
run in interface FlowRunner