public abstract class LifeCycle extends SPI
Implement the LifeCycle SPI, by extending this class and implementing the stateChanged method.
Configure this SPI with the following declaration in the xd.spi.properties file:
spi.LifeCycle=<fully-qualified implementation class name>
Notes:
<WAS install root>/properties. E.g. /WebSphere/AppServer/properties
<WAS install root>/lib/classes. E.g. /WebSphere/AppServer/lib/classes
Constructor and Description |
---|
LifeCycle() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this SPI instance.
|
abstract void |
stateChanged(java.lang.String jobID,
int newState)
Callback invoked by job scheduler when a job changes state.
|
compareTo, getInvocationOrder, setInvocationOrder, toString
public abstract void stateChanged(java.lang.String jobID, int newState)
jobID
- specifies the job ID of the job that has changed state.newState
- specifies the new state of the job.Job State Constants