public class JobWithState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
LOG |
Constructor and Description |
---|
JobWithState(JobAPI.Job job,
JobAPI.JobState state) |
Modifier and Type | Method and Description |
---|---|
boolean |
active() |
static JobWithState |
decode(byte[] encodedBytes) |
boolean |
finished() |
JobAPI.Job |
getJob() |
JobAPI.JobState |
getState() |
void |
setState(JobAPI.JobState state) |
byte[] |
toByteArray()
first 4 bytes state length
next comes state string
remaining is job object
|
public JobAPI.Job getJob()
public JobAPI.JobState getState()
public void setState(JobAPI.JobState state)
public byte[] toByteArray()
public static JobWithState decode(byte[] encodedBytes)
public boolean finished()
public boolean active()