com.ibm.websphere.cem
Class ECSControllerImpl

java.lang.Object
  extended bycom.ibm.websphere.cem.ECSControllerImpl
All Implemented Interfaces:
ECSController, java.io.Serializable

public class ECSControllerImpl
extends java.lang.Object
implements ECSController, java.io.Serializable

See Also:
ECSEmitter, Serialized Form

Constructor Summary
ECSControllerImpl(com.ibm.websphere.cem.WorkAreaHelper wah)
          Constructor.
 
Method Summary
 java.lang.String clearEcsID()
          Removes the association between the instance of the event correlation sphere and the current thread.
 java.lang.String getCurrentEcsID()
          Returns the current event correlation sphere identifier.
 java.lang.String getPreviousEcsID()
          Returns the previous event correlation sphere identifier.
protected  com.ibm.websphere.cem.WorkAreaHelper getWah()
          Returns the current instance of the WorkAreaHelper.
 java.lang.String setNewEcsID(java.lang.String id)
          Associates a new instance of this event correlation sphere with the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECSControllerImpl

public ECSControllerImpl(com.ibm.websphere.cem.WorkAreaHelper wah)
Constructor. This is called by com.ibm.websphere.cem.ECSEmitter It retrieves the current EventCorrelationSphere ID (if any) for this event from the user work area.

Parameters:
wah - The current WorkAreaHelper
Method Detail

getWah

protected com.ibm.websphere.cem.WorkAreaHelper getWah()
Returns the current instance of the WorkAreaHelper.

Returns:
The instance of the WorkAreaHelper

setNewEcsID

public java.lang.String setNewEcsID(java.lang.String id)
Associates a new instance of this event correlation sphere with the current thread. This action PUSHs the ID stack for this new ecsID

Specified by:
setNewEcsID in interface ECSController
Parameters:
id - The new esc identifier for this event correlation sphere.
Returns:
The previous value of the ecsID (or null if none)

clearEcsID

public java.lang.String clearEcsID()
Removes the association between the instance of the event correlation sphere and the current thread. This action clears the properties associated with the context. ie POP the stack for this event correlation sphere ID

Specified by:
clearEcsID in interface ECSController
Returns:
The previous value of the ECS ID (or null if none)

getCurrentEcsID

public java.lang.String getCurrentEcsID()
Returns the current event correlation sphere identifier. If no event correlation sphere instance is associated with the thread, a null is returned.

Specified by:
getCurrentEcsID in interface ECSController
Returns:
The value of the ecsID (or null if none)

getPreviousEcsID

public java.lang.String getPreviousEcsID()
Returns the previous event correlation sphere identifier. If no event correlation sphere instance is associated with the thread, a null is returned.

Specified by:
getPreviousEcsID in interface ECSController
Returns:
The value of the previous ecsID (or null if none)