Class CheckpointMetadata
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.metadata.CheckpointMetadata
-
- All Implemented Interfaces:
org.apache.flink.util.Disposable
public class CheckpointMetadata extends Object implements org.apache.flink.util.Disposable
The metadata of a snapshot (checkpoint or savepoint).
-
-
Constructor Summary
Constructors Constructor Description CheckpointMetadata(long checkpointId, Collection<OperatorState> operatorStates, Collection<MasterState> masterStates)CheckpointMetadata(long checkpointId, Collection<OperatorState> operatorStates, Collection<MasterState> masterStates, CheckpointProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()longgetCheckpointId()CheckpointPropertiesgetCheckpointProperties()Collection<MasterState>getMasterStates()Collection<OperatorState>getOperatorStates()StringtoString()CheckpointMetadatawithProperties(CheckpointProperties properties)
-
-
-
Constructor Detail
-
CheckpointMetadata
public CheckpointMetadata(long checkpointId, Collection<OperatorState> operatorStates, Collection<MasterState> masterStates)
-
CheckpointMetadata
public CheckpointMetadata(long checkpointId, Collection<OperatorState> operatorStates, Collection<MasterState> masterStates, @Nullable CheckpointProperties properties)
-
-
Method Detail
-
getCheckpointId
public long getCheckpointId()
-
getOperatorStates
public Collection<OperatorState> getOperatorStates()
-
getMasterStates
public Collection<MasterState> getMasterStates()
-
dispose
public void dispose() throws Exception- Specified by:
disposein interfaceorg.apache.flink.util.Disposable- Throws:
Exception
-
getCheckpointProperties
@Nullable public CheckpointProperties getCheckpointProperties()
-
withProperties
public CheckpointMetadata withProperties(CheckpointProperties properties)
-
-