Class PipeConfigNodeSubtask
java.lang.Object
org.apache.iotdb.commons.pipe.agent.task.subtask.PipeSubtask
org.apache.iotdb.commons.pipe.agent.task.subtask.PipeReportableSubtask
org.apache.iotdb.commons.pipe.agent.task.subtask.PipeAbstractConnectorSubtask
org.apache.iotdb.confignode.manager.pipe.agent.task.PipeConfigNodeSubtask
- All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback<Boolean>,AutoCloseable,Callable<Boolean>
-
Field Summary
Fields inherited from class org.apache.iotdb.commons.pipe.agent.task.subtask.PipeAbstractConnectorSubtask
isSubmitted, lastExceptionEvent, outputPipeConnector, subtaskCallbackListeningExecutorFields inherited from class org.apache.iotdb.commons.pipe.agent.task.subtask.PipeReportableSubtask
highPriorityLockTaskCountFields inherited from class org.apache.iotdb.commons.pipe.agent.task.subtask.PipeSubtask
creationTime, isClosed, lastEvent, MAX_RETRY_TIMES, retryCount, shouldStopSubmittingSelf, subtaskScheduler, subtaskWorkerThreadPoolExecutor, taskID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected booleanTry to consume anEventby theIoTDBConfigRegionExtractor.protected StringgetRootCause(Throwable throwable) protected voidreport(EnrichedEvent event, PipeRuntimeException exception) Methods inherited from class org.apache.iotdb.commons.pipe.agent.task.subtask.PipeAbstractConnectorSubtask
bindExecutors, clearReferenceCountAndReleaseLastExceptionEvent, onFailure, onSuccess, registerCallbackHookAfterSubmit, setLastExceptionEvent, submitSelfMethods inherited from class org.apache.iotdb.commons.pipe.agent.task.subtask.PipeReportableSubtask
decreaseHighPriorityTaskCount, increaseHighPriorityTaskCount, preScheduleLowPriorityTask, sleepIfNoHighPriorityTaskMethods inherited from class org.apache.iotdb.commons.pipe.agent.task.subtask.PipeSubtask
allowSubmittingSelf, call, clearReferenceCountAndReleaseLastEvent, decreaseReferenceCountAndReleaseLastEvent, disallowSubmittingSelf, getCreationTime, getTaskID, isSubmittingSelf, setLastEvent
-
Constructor Details
-
Method Details
-
executeOnce
Try to consume anEventby theIoTDBConfigRegionExtractor.- Specified by:
executeOncein classPipeSubtask- Returns:
trueif theEventis consumed successfully,falseif no moreEventcan be consumed- Throws:
Exception- if any error occurs when consuming theEvent
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classPipeSubtask
-
getRootCause
- Specified by:
getRootCausein classPipeReportableSubtask
-
report
- Specified by:
reportin classPipeReportableSubtask
-
getPipeName
-