Class PipeConfigRegionSnapshotEvent
java.lang.Object
org.apache.iotdb.commons.pipe.event.EnrichedEvent
org.apache.iotdb.commons.pipe.event.PipeSnapshotEvent
org.apache.iotdb.confignode.manager.pipe.event.PipeConfigRegionSnapshotEvent
- All Implemented Interfaces:
SerializableEvent,ReferenceTrackableEvent,Event
public class PipeConfigRegionSnapshotEvent
extends PipeSnapshotEvent
implements ReferenceTrackableEvent
-
Field Summary
Fields inherited from class org.apache.iotdb.commons.pipe.event.PipeSnapshotEvent
progressIndex, resourceManager, transferredTypesFields inherited from class org.apache.iotdb.commons.pipe.event.EnrichedEvent
commitId, committerKey, creationTime, endTime, isPatternParsed, isReleased, isTimeParsed, NO_COMMIT_ID, onCommittedHooks, pipeName, pipePattern, pipeTaskMeta, rebootTimes, referenceCount, shouldReportOnCommit, startTime -
Constructor Summary
ConstructorsConstructorDescriptionPipeConfigRegionSnapshotEvent(String snapshotPath, String templateFilePath, CNSnapshotFileType type) PipeConfigRegionSnapshotEvent(String snapshotPath, String templateFilePath, CNSnapshotFileType type, String pipeName, long creationTime, PipeTaskMeta pipeTaskMeta, PipePattern pattern) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfineTransferredTypes(Set<ConfigPhysicalPlanType> listenedTypeSet) voiddeserializeFromByteBuffer(ByteBuffer buffer) static Set<ConfigPhysicalPlanType>getConfigPhysicalPlanTypeSet(String sealTypes) booleaninternallyDecreaseResourceReferenceCount(String holderMessage) booleaninternallyIncreaseResourceReferenceCount(String holderMessage) static booleanneedTransferSnapshot(Set<ConfigPhysicalPlanType> listenedTypeSet) shallowCopySelfAndBindPipeTaskMetaForProgressReport(String pipeName, long creationTime, PipeTaskMeta pipeTaskMeta, PipePattern pattern, long startTime, long endTime) toString()protected voidMethods inherited from class org.apache.iotdb.commons.pipe.event.PipeSnapshotEvent
bindProgressIndex, getProgressIndex, isGeneratedByPipe, mayEventPathsOverlappedWithPattern, mayEventTimeOverlappedWithTimeRange, toSealTypeStringMethods inherited from class org.apache.iotdb.commons.pipe.event.EnrichedEvent
addOnCommittedHook, clearReferenceCount, decreaseReferenceCount, equalsInPipeConsensus, getCommitId, getCommitIds, getCommitterKey, getCreationTime, getDummyEventsForCommitIds, getEndTime, getPatternString, getPipeName, getPipePattern, getPipeTaskMeta, getRebootTimes, getReferenceCount, getRegionId, getStartTime, hasMultipleCommitIds, increaseReferenceCount, isDataRegionEvent, isReleased, needToCommit, onCommitted, reportProgress, setCommitterKeyAndCommitId, setRebootTimes, shouldParsePattern, shouldParseTime, shouldParseTimeOrPattern, skipParsingPattern, skipParsingTime, skipReportOnCommit
-
Constructor Details
-
PipeConfigRegionSnapshotEvent
public PipeConfigRegionSnapshotEvent() -
PipeConfigRegionSnapshotEvent
public PipeConfigRegionSnapshotEvent(String snapshotPath, String templateFilePath, CNSnapshotFileType type) -
PipeConfigRegionSnapshotEvent
public PipeConfigRegionSnapshotEvent(String snapshotPath, String templateFilePath, CNSnapshotFileType type, String pipeName, long creationTime, PipeTaskMeta pipeTaskMeta, PipePattern pattern)
-
-
Method Details
-
getSnapshotFile
-
getTemplateFile
-
getFileType
-
internallyIncreaseResourceReferenceCount
- Specified by:
internallyIncreaseResourceReferenceCountin classEnrichedEvent
-
internallyDecreaseResourceReferenceCount
- Specified by:
internallyDecreaseResourceReferenceCountin classEnrichedEvent
-
shallowCopySelfAndBindPipeTaskMetaForProgressReport
public EnrichedEvent shallowCopySelfAndBindPipeTaskMetaForProgressReport(String pipeName, long creationTime, PipeTaskMeta pipeTaskMeta, PipePattern pattern, long startTime, long endTime) - Specified by:
shallowCopySelfAndBindPipeTaskMetaForProgressReportin classEnrichedEvent
-
serializeToByteBuffer
- Specified by:
serializeToByteBufferin interfaceSerializableEvent
-
deserializeFromByteBuffer
- Specified by:
deserializeFromByteBufferin interfaceSerializableEvent
-
needTransferSnapshot
-
confineTransferredTypes
-
getConfigPhysicalPlanTypeSet
-
toString
- Overrides:
toStringin classPipeSnapshotEvent
-
coreReportMessage
- Overrides:
coreReportMessagein classPipeSnapshotEvent
-
trackResource
protected void trackResource()- Overrides:
trackResourcein classEnrichedEvent
-
eventResourceBuilder
- Specified by:
eventResourceBuilderin interfaceReferenceTrackableEvent
-