Package com.hazelcast.jet
Class JobStatusEvent
java.lang.Object
com.hazelcast.jet.JobStatusEvent
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable
Holds information about a job's state (status) transition,
reason for the transition, and whether it is user-initiated.
- Since:
- 5.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJobStatusEvent(long jobId, JobStatus previousStatus, JobStatus newStatus, String description, boolean userRequested) -
Method Summary
Modifier and TypeMethodDescriptionintReturns type identifier for this class.If the event is generated by the user, indicates the action; if there is a failure, indicates the cause; otherwise, null.intReturns DataSerializableFactory factory ID for this class.longgetJobId()booleanIndicates whether the event is generated by the user viaJob.suspend(),Job.resume(),Job.restart(),Job.cancel(),Job.exportSnapshot(String), orJob.cancelAndExportSnapshot(String).voidReads fields from the input streamtoString()voidWrites object fields to output stream
-
Constructor Details
-
JobStatusEvent
public JobStatusEvent() -
JobStatusEvent
-
-
Method Details
-
getJobId
public long getJobId() -
getPreviousStatus
-
getNewStatus
-
getDescription
If the event is generated by the user, indicates the action; if there is a failure, indicates the cause; otherwise, null. -
isUserRequested
public boolean isUserRequested()Indicates whether the event is generated by the user viaJob.suspend(),Job.resume(),Job.restart(),Job.cancel(),Job.exportSnapshot(String), orJob.cancelAndExportSnapshot(String). -
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
toString
-