Class ConfigRegionListeningQueue
java.lang.Object
org.apache.iotdb.commons.pipe.datastructure.queue.listening.AbstractSerializableListeningQueue<Event>
org.apache.iotdb.commons.pipe.datastructure.queue.listening.AbstractPipeListeningQueue
org.apache.iotdb.confignode.manager.pipe.extractor.ConfigRegionListeningQueue
- All Implemented Interfaces:
Closeable,AutoCloseable,SnapshotProcessor
public class ConfigRegionListeningQueue
extends AbstractPipeListeningQueue
implements SnapshotProcessor
-
Field Summary
Fields inherited from class org.apache.iotdb.commons.pipe.datastructure.queue.listening.AbstractSerializableListeningQueue
isClosed, queue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EventdeserializeFromByteBuffer(ByteBuffer byteBuffer) voidprocessLoadSnapshot(File snapshotDir) booleanprocessTakeSnapshot(File snapshotDir) protected ByteBufferserializeToByteBuffer(Event event) voidtryListenToPlan(ConfigPhysicalPlan plan, boolean isGeneratedByPipe) voidtryListenToSnapshots(List<org.apache.tsfile.utils.Pair<org.apache.tsfile.utils.Pair<Path, Path>, CNSnapshotFileType>> snapshotPathInfoList) Methods inherited from class org.apache.iotdb.commons.pipe.datastructure.queue.listening.AbstractPipeListeningQueue
close, findAvailableSnapshots, releaseResource, removeBefore, tryListen, tryListenMethods inherited from class org.apache.iotdb.commons.pipe.datastructure.queue.listening.AbstractSerializableListeningQueue
deserializeFromFile, getSize, getTailIndex, isGivenNextIndexValid, isOpened, newIterator, open, returnIterator, serializeToFile, tryListen
-
Constructor Details
-
ConfigRegionListeningQueue
public ConfigRegionListeningQueue()
-
-
Method Details
-
tryListenToPlan
-
tryListenToSnapshots
public void tryListenToSnapshots(List<org.apache.tsfile.utils.Pair<org.apache.tsfile.utils.Pair<Path, Path>, CNSnapshotFileType>> snapshotPathInfoList) -
serializeToByteBuffer
- Specified by:
serializeToByteBufferin classAbstractSerializableListeningQueue<Event>
-
deserializeFromByteBuffer
- Specified by:
deserializeFromByteBufferin classAbstractSerializableListeningQueue<Event>
-
processTakeSnapshot
- Specified by:
processTakeSnapshotin interfaceSnapshotProcessor- Throws:
IOException
-
processLoadSnapshot
- Specified by:
processLoadSnapshotin interfaceSnapshotProcessor- Throws:
org.apache.thrift.TExceptionIOException
-