Package com.hazelcast.jet
Class JobStateSnapshot
java.lang.Object
com.hazelcast.jet.JobStateSnapshot
A handle to an exported state snapshot created using
Job.exportSnapshot(String)
.- Since:
- Jet 3.0
-
Constructor Summary
ConstructorDescriptionJobStateSnapshot
(HazelcastInstance instance, String name, com.hazelcast.jet.impl.SnapshotValidationRecord record) This constructor is a private API, useJetService.getJobStateSnapshot(String)
instead. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the time the snapshot was created.Returns the JSON representation of the DAG of the job this snapshot was created from.void
destroy()
Destroy the underlying distributed object.long
jobId()
Returns the job ID of the job the snapshot was originally exported from.jobName()
Returns the job name of the job the snapshot was originally exported from.name()
Returns the snapshot name.long
Returns the size in bytes of the payload data of the state snapshot.
-
Constructor Details
-
JobStateSnapshot
@PrivateApi public JobStateSnapshot(@Nonnull HazelcastInstance instance, @Nonnull String name, @Nonnull com.hazelcast.jet.impl.SnapshotValidationRecord record) This constructor is a private API, useJetService.getJobStateSnapshot(String)
instead.
-
-
Method Details
-
name
Returns the snapshot name. This is the name that was given toJob.exportSnapshot(String)
. -
creationTime
public long creationTime()Returns the time the snapshot was created. -
jobId
public long jobId()Returns the job ID of the job the snapshot was originally exported from. -
jobName
Returns the job name of the job the snapshot was originally exported from. -
payloadSize
public long payloadSize()Returns the size in bytes of the payload data of the state snapshot. Doesn't include storage overhead and especially doesn't account for backup copies. -
dagJsonString
Returns the JSON representation of the DAG of the job this snapshot was created from. -
destroy
public void destroy()Destroy the underlying distributed object.
-