com.ibm.wsspi.batch
Class LifeCycle
- java.lang.Object
com.ibm.websphere.grid.spi.SPI
com.ibm.wsspi.batch.LifeCycle
All implemented interfaces:
java.lang.Comparable
- 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:
- The xd.spi.properties file is located in:
- The jar file containing the implementation of this SPI should be stored in:
- java.lang.String
- abstract
- void
- public LifeCycle()
- public abstract void stateChanged( java.lang.String jobID,
- int newState)
- public java.lang.String getName( )
<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
Constructor and Description |
---|
LifeCycle()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getName()
|
|
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
LifeCycle
Method Detail
stateChanged
Callback invoked by job scheduler when a job changes state.
Parameters:
jobID
- specifies the job ID of the job that has changed state. newState
- specifies the new state of the job. See Also:
Job State Constants
getName
Description copied from class:
SPI
Returns the name of this SPI instance. Should return a unique identifier.