Class PipeConfigNodeRuntimeAgent
java.lang.Object
org.apache.iotdb.confignode.manager.pipe.agent.runtime.PipeConfigNodeRuntimeAgent
- All Implemented Interfaces:
IService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecreaseListenerReference(PipeParameters parameters) getID()voidincreaseListenerReference(PipeParameters parameters) booleanCheck if the leader is ready to allow pipe operations.booleanlistener()voidNotify the region listener that the leader is ready to allow pipe operations.voidNotify the region listener that the leader is unavailable to stop pipe operations.voidregisterPeriodicalJob(String id, Runnable periodicalJob, long intervalInSeconds) voidregisterPhantomReferenceCleanJob(String id, Runnable periodicalJob, long intervalInSeconds) voidreport(EnrichedEvent event, PipeRuntimeException pipeRuntimeException) voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iotdb.commons.service.IService
shutdown, waitAndStop
-
Constructor Details
-
PipeConfigNodeRuntimeAgent
public PipeConfigNodeRuntimeAgent()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
isShutdown
public boolean isShutdown() -
getID
-
listener
-
increaseListenerReference
- Throws:
IllegalPathException
-
decreaseListenerReference
- Throws:
IllegalPathException
-
notifyLeaderReady
public void notifyLeaderReady()Notify the region listener that the leader is ready to allow pipe operations. -
isLeaderReady
public boolean isLeaderReady()Check if the leader is ready to allow pipe operations.- Returns:
- true if the leader is ready to allow pipe operations
-
report
-
registerPeriodicalJob
-
registerPhantomReferenceCleanJob
-