|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.grid.spi.SPI
com.ibm.wsspi.batch.LifeCycle
public abstract class LifeCycle
LifeCycle is the abstract base class for the LifeCycle System Programming Interface (SPI). Use the LifeCycle SPI to receive job state change notifications. Each time a job transitions from one state to another, this SPI is invoked, indicating the new state for the affected job.
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/classesYou are responsible for creating the classes directory if it does not already exist.
Constructor Summary | |
---|---|
LifeCycle()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.ibm.websphere.grid.spi.SPI |
---|
compareTo, getInvocationOrder, setInvocationOrder, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LifeCycle()
Method Detail |
---|
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
public java.lang.String getName()
SPI
getName
in class SPI
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |