Class PipeConfigNodeTaskAgent
java.lang.Object
org.apache.iotdb.commons.pipe.agent.task.PipeTaskAgent
org.apache.iotdb.confignode.manager.pipe.agent.task.PipeConfigNodeTaskAgent
-
Field Summary
Fields inherited from class org.apache.iotdb.commons.pipe.agent.task.PipeTaskAgent
MESSAGE_PIPE_NOT_ENOUGH_MEMORY, MESSAGE_UNEXPECTED_PIPE_STATUS, MESSAGE_UNKNOWN_PIPE_STATUS, pipeMetaKeeper, pipeTaskManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildPipeTasks(PipeMeta pipeMetaFromConfigNode) protected voidprotected voidcreatePipeTask(int consensusGroupId, PipeStaticMeta pipeStaticMeta, PipeTaskMeta pipeTaskMeta) protected voidfreezeRate(String pipeName, long creationTime) protected TPushPipeMetaRespExceptionMessagehandleDropPipeInternal(String pipeName) protected List<TPushPipeMetaRespExceptionMessage>handlePipeMetaChangesInternal(List<PipeMeta> pipeMetaListFromCoordinator) protected TPushPipeMetaRespExceptionMessagehandleSinglePipeMetaChangesInternal(PipeMeta pipeMetaFromCoordinator) protected booleanvoidrunPipeTasks(Collection<PipeTask> pipeTasks, Consumer<PipeTask> runSingle) voidprotected voidMethods inherited from class org.apache.iotdb.commons.pipe.agent.task.PipeTaskAgent
acquireReadLock, acquireWriteLock, addFloatingMemoryUsageInByte, calculateMemoryUsage, checkBeforeCreatePipe, checkBeforeDropPipe, checkBeforeDropPipe, checkBeforeStartPipe, checkBeforeStopPipe, collectPipeMetaList, decreaseFloatingMemoryUsageInByte, dropAllPipeTasks, dropPipe, dropPipe, getAllFloatingMemoryUsageInByte, getCommitterKey, getFloatingMemoryUsageInByte, getPipeCount, getPipeCreationTime, getPipeNameWithCreationTime, handleDropPipe, handlePipeMetaChanges, handleSinglePipeMetaChanges, releaseReadLock, releaseWriteLock, startPipe, stopAllPipesWithCriticalException, tryReadLockWithTimeOut, tryWriteLockWithTimeOut
-
Constructor Details
-
PipeConfigNodeTaskAgent
public PipeConfigNodeTaskAgent()
-
-
Method Details
-
isShutdown
protected boolean isShutdown()- Specified by:
isShutdownin classPipeTaskAgent
-
thawRate
- Specified by:
thawRatein classPipeTaskAgent
-
freezeRate
- Specified by:
freezeRatein classPipeTaskAgent
-
buildPipeTasks
protected Map<Integer,PipeTask> buildPipeTasks(PipeMeta pipeMetaFromConfigNode) throws IllegalPathException - Specified by:
buildPipeTasksin classPipeTaskAgent- Throws:
IllegalPathException
-
createPipeTask
protected void createPipeTask(int consensusGroupId, PipeStaticMeta pipeStaticMeta, PipeTaskMeta pipeTaskMeta) throws IllegalPathException - Specified by:
createPipeTaskin classPipeTaskAgent- Throws:
IllegalPathException
-
stopAllPipesWithCriticalException
public void stopAllPipesWithCriticalException() -
handleSinglePipeMetaChangesInternal
protected TPushPipeMetaRespExceptionMessage handleSinglePipeMetaChangesInternal(PipeMeta pipeMetaFromCoordinator) - Overrides:
handleSinglePipeMetaChangesInternalin classPipeTaskAgent
-
handleDropPipeInternal
- Overrides:
handleDropPipeInternalin classPipeTaskAgent
-
handlePipeMetaChangesInternal
protected List<TPushPipeMetaRespExceptionMessage> handlePipeMetaChangesInternal(List<PipeMeta> pipeMetaListFromCoordinator) - Overrides:
handlePipeMetaChangesInternalin classPipeTaskAgent
-
collectPipeMetaListInternal
protected void collectPipeMetaListInternal(TPipeHeartbeatReq req, TPipeHeartbeatResp resp) throws org.apache.thrift.TException - Specified by:
collectPipeMetaListInternalin classPipeTaskAgent- Throws:
org.apache.thrift.TException
-
runPipeTasks
- Specified by:
runPipeTasksin classPipeTaskAgent
-