com.ibm.di.api.tm
Class TombstoneManagerListener

java.lang.Object
  extended by com.ibm.di.api.tm.TombstoneManagerListener
All Implemented Interfaces:
DIEventListener, EventListener

public class TombstoneManagerListener
extends Object
implements DIEventListener

This class handles the stop events for AssmeblyLine and Config Instances and triggers the Tombstones Manager logic.


Field Summary
static String AL_ALL_TS_PARAMETER
          This is the parameter in the Tombstone config object that specifies whether tombstones are turned on/off for all the AssemblyLines.
static String AL_TS_SETTING_PARAMETER
          This is the parameter in the Tombstone config object of the specific AssemblyLine that specifies whether tombstones are turned on/off.
static String CI_TS_PARAMETER
          This is the parameter in the Tombstone config object that specifies whether tombstones are turned on/off for the specific ConfigInstance.
static int EVENT_TYPE_STOP
          This constant could be used as value for the Tombstone.PROPERTY_NAME_EVENT_TYPE_ID property.
static int EXIT_CODE_ERROR
          This constant could be used as value for the Tombstone.PROPERTY_NAME_EXIT_CODE property.
static int EXIT_CODE_NORMAL
          This constant could be used as value for the Tombstone.PROPERTY_NAME_EXIT_CODE property.
 
Method Summary
 void handleEvent(DIEvent aEvent)
          This method handles tombstone events.
static void initializeListener(Session aLocalSession, TombstoneManager aTombstoneManager)
          Initializes the listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_TYPE_STOP

public static final int EVENT_TYPE_STOP
This constant could be used as value for the Tombstone.PROPERTY_NAME_EVENT_TYPE_ID property.
The value of this constant is: 0

See Also:
Constant Field Values

EXIT_CODE_NORMAL

public static final int EXIT_CODE_NORMAL
This constant could be used as value for the Tombstone.PROPERTY_NAME_EXIT_CODE property.
The value of this constant is: 0

See Also:
Constant Field Values

EXIT_CODE_ERROR

public static final int EXIT_CODE_ERROR
This constant could be used as value for the Tombstone.PROPERTY_NAME_EXIT_CODE property.
The value of this constant is: 1

See Also:
Constant Field Values

AL_TS_SETTING_PARAMETER

public static final String AL_TS_SETTING_PARAMETER
This is the parameter in the Tombstone config object of the specific AssemblyLine that specifies whether tombstones are turned on/off.

See Also:
Constant Field Values

AL_ALL_TS_PARAMETER

public static final String AL_ALL_TS_PARAMETER
This is the parameter in the Tombstone config object that specifies whether tombstones are turned on/off for all the AssemblyLines.

See Also:
Constant Field Values

CI_TS_PARAMETER

public static final String CI_TS_PARAMETER
This is the parameter in the Tombstone config object that specifies whether tombstones are turned on/off for the specific ConfigInstance.

See Also:
Constant Field Values
Method Detail

initializeListener

public static void initializeListener(Session aLocalSession,
                                      TombstoneManager aTombstoneManager)
                               throws DIException
Initializes the listener.

Parameters:
aLocalSession - The local session used for registration for events.
aTombstoneManager - the manager responsible for initialization/usage of this listener.
Throws:
DIException

handleEvent

public void handleEvent(DIEvent aEvent)
                 throws DIException
This method handles tombstone events.

Specified by:
handleEvent in interface DIEventListener
Parameters:
aEvent - event object, which will be handled
Throws:
DIException
See Also:
DIEvent