public class JobStatusEvent extends Object implements IdentifiedDataSerializable
JobStatusListener| Constructor and Description |
|---|
JobStatusEvent() |
JobStatusEvent(long jobId,
JobStatus previousStatus,
JobStatus newStatus,
String description,
boolean userRequested) |
| Modifier and Type | Method and Description |
|---|---|
int |
getClassId()
Returns type identifier for this class.
|
String |
getDescription()
If the event is generated by the user, indicates the action;
if there is a failure, indicates the cause; otherwise, null.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
long |
getJobId() |
JobStatus |
getNewStatus() |
JobStatus |
getPreviousStatus() |
boolean |
isUserRequested()
Indicates whether the event is generated by the user via
Job.suspend(), Job.resume(), Job.restart(),
Job.cancel(), Job.exportSnapshot(String), or
Job.cancelAndExportSnapshot(String). |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public long getJobId()
@Nullable public String getDescription()
public boolean isUserRequested()
Job.suspend(), Job.resume(), Job.restart(),
Job.cancel(), Job.exportSnapshot(String), or
Job.cancelAndExportSnapshot(String).public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2023 Hazelcast, Inc.. All rights reserved.