com.ibm.websphere.grid.spi

Class WSGridNotificationSPI

  1. java.lang.Object
  2. extended bycom.ibm.websphere.grid.spi.SPI
  3. extended bycom.ibm.websphere.grid.spi.WSGridNotificationSPI
All implemented interfaces:
java.lang.Comparable

  1. public abstract class WSGridNotificationSPI
  2. extends SPI

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
JOB_STATE_ENDED
Identifies the job ended notification type.
  1. static
  2. java.lang.String
JOB_STATE_STARTED
Identifies the job started notification type.
  1. static
  2. java.lang.String
STEP_STATE_ENDED
Identifies the step ended notification type.
  1. static
  2. java.lang.String
STEP_STATE_STARTED
Identifies the step started notification type.

Constructor Summary

Constructor and Description
WSGridNotificationSPI()

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. 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.
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

  1. public static final java.lang.String JOB_STATE_STARTED

Identifies the job started notification type.

See Also:

STEP_STATE_STARTED

  1. public static final java.lang.String STEP_STATE_STARTED

Identifies the step started notification type.

See Also:

STEP_STATE_ENDED

  1. public static final java.lang.String STEP_STATE_ENDED

Identifies the step ended notification type.

See Also:

JOB_STATE_ENDED

  1. public static final java.lang.String JOB_STATE_ENDED

Identifies the job ended notification type.

See Also:

Constructor Detail

WSGridNotificationSPI

  1. public WSGridNotificationSPI()

Method Detail

notificationReceived

  1. public abstract void notificationReceived( java.util.Properties jobProps,
  2. java.lang.String xdJobID,
  3. java.lang.String notification,
  4. 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:
  1. JOB_STATE_STARTED
  2. STEP_STATE_STARTED
  3. STEP_STATE_ENDED
  4. JOB_STATE_ENDED
rc - specifies the step or job return code. It is defined only for notification types:
  1. STEP_STATE_ENDED
  2. JOB_STATE_ENDED