com.ibm.websphere.grid.spi
Class WSGridNotificationSPI
- java.lang.Object
com.ibm.websphere.grid.spi.SPI
com.ibm.websphere.grid.spi.WSGridNotificationSPI
All implemented interfaces:
java.lang.Comparable
- public abstract class WSGridNotificationSPI
- extends SPI
Field Summary
Modifier and Type | Field and Description |
---|---|
|
JOB_STATE_ENDED
Identifies the job ended notification type.
|
|
JOB_STATE_STARTED
Identifies the job started notification type.
|
|
STEP_STATE_ENDED
Identifies the step ended notification type.
|
|
STEP_STATE_STARTED
Identifies the step started notification type.
|
Constructor Summary
Constructor and Description |
---|
WSGridNotificationSPI()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
notificationReceived(java.util.Properties jobProps,java.lang.String xdJobID,java.lang.String notification,int rc)
Callback method invoked by job scheduler job lifecycle events.
|
Methods inherited from class com.ibm.websphere.grid.spi.SPI |
---|
compareTo, getInvocationOrder, getName, setInvocationOrder, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
JOB_STATE_STARTED
- public static final java.lang.String JOB_STATE_STARTED
See Also:
STEP_STATE_STARTED
- public static final java.lang.String STEP_STATE_STARTED
Identifies the step started notification type.
See Also:
STEP_STATE_ENDED
- public static final java.lang.String STEP_STATE_ENDED
Identifies the step ended notification type.
See Also:
JOB_STATE_ENDED
- public static final java.lang.String JOB_STATE_ENDED
Identifies the job ended notification type.
See Also:
Constructor Detail
WSGridNotificationSPI
- public WSGridNotificationSPI()
Method Detail
notificationReceived
- public abstract void notificationReceived( java.util.Properties jobProps,
- java.lang.String xdJobID,
- java.lang.String notification,
- int rc)
Callback method invoked by job scheduler job lifecycle events. This method must be implemented by the WSGridNotificationSPI subclass implementor.
Parameters:
jobProps
- contains the properties specified in the WSGrid properties file(s) for this job. xdJobID
- specifies the job id of the job corresponding to this notification. notification
- specifies the lifecycle event that occurred for the specified job.
The event type is defined by the following constants:
- JOB_STATE_STARTED
- STEP_STATE_STARTED
- STEP_STATE_ENDED
- JOB_STATE_ENDED
rc
- specifies the step or job return code. It is defined only for notification types:
- STEP_STATE_ENDED
- JOB_STATE_ENDED
Identifies the job started notification type.