Job.Action, Job.Health, Job.State
Modifier | Constructor and Description |
---|---|
protected |
AbstractGraphJob() |
Modifier and Type | Method and Description |
---|---|
protected void |
completeTransition() |
Job.State |
getCurrentState()
Retrieves the current state of this job.
|
Job.Health |
getHealth()
Returns the summarized health indicator of the graph nodes.
|
java.lang.String |
getLastError()
Returns the last error message caught by the current job execution.
|
Job.State |
getNextState()
Retrieves the next execution state when this job makes a state
transition.
|
protected boolean |
inTransition() |
protected void |
setHealth(Job.Health value) |
protected void |
setLastError(java.lang.String value) |
protected void |
setNextState(Job.State value) |
abstract void |
stateChange(Job.Action action)
Initiates an execution state change.
|
public Job.State getCurrentState()
Job
getCurrentState
in interface Job
public Job.State getNextState()
Job
getNextState
in interface Job
Job.getCurrentState()
.public abstract void stateChange(Job.Action action)
Job
stateChange
in interface Job
action
- which triggers the state change.public Job.Health getHealth()
Job
public java.lang.String getLastError()
Job
getLastError
in interface Job
protected boolean inTransition()
protected void setNextState(Job.State value)
protected void completeTransition()
protected void setHealth(Job.Health value)
protected void setLastError(java.lang.String value)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641