IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base
Class MirrorHandler

java.lang.Object
  extended by com.ibm.btt.base.DSEHandler
      extended by com.ibm.btt.base.MirrorHandler
All Implemented Interfaces:
Handler

public class MirrorHandler
extends DSEHandler

This class should only be used by the EventManager. Any instance of this class is a handler that is interested for an event that will be signaled by a local notifier and represents a handler in a remote workstation interested in a remote event.


Constructor Summary
MirrorHandler(CSClientService aCSClient, java.lang.String anEventName)
          This constructor creates a MirrorHandler with TID attribute set to aCSClient.getName() and the event anEventName added to its list of events.
MirrorHandler(java.lang.String aSessionId, java.lang.String anEventName)
          This constructor creates a MirrorHandler with its sessionId attribute set to aSessionId, TID attribute set to Context.getTIDForSession(aSessionId) and the event anEventName added to its list of events.
 
Method Summary
 void addEvent(java.lang.String anEventName)
          Adds an event to the events list.
 Handler dispatchEvent(DSEEventObject anEvent)
          Dispatchs the event anEvent.
protected  Hashtable getEventList()
          Gets the eventList attribute value.
 java.lang.String getSessionId()
          Gets the sessionId attribute value.
 java.lang.String getTID()
          Gets the tid attribute value.
 boolean hasEvents()
          Returns true if there is any event in the events list.
 void removeEvent(java.lang.String anEventName)
          Removes an event from the events list.
 void setSessionId(java.lang.String aSessionId)
          Sets the sessionId attribute to aSessionId.
 void setTID(java.lang.String aTID)
          Sets the tid attribute to aTID.
 
Methods inherited from class com.ibm.btt.base.DSEHandler
handleEvent, handleEvent, stopHandlingEvent, stopHandlingEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MirrorHandler

public MirrorHandler(CSClientService aCSClient,
                     java.lang.String anEventName)
This constructor creates a MirrorHandler with TID attribute set to aCSClient.getName() and the event anEventName added to its list of events.

Parameters:
aCSClient - CSClientService
anEventName - java.lang.String

MirrorHandler

public MirrorHandler(java.lang.String aSessionId,
                     java.lang.String anEventName)
              throws DSEInvalidRequestException,
                     DSEObjectNotFoundException
This constructor creates a MirrorHandler with its sessionId attribute set to aSessionId, TID attribute set to Context.getTIDForSession(aSessionId) and the event anEventName added to its list of events.

Parameters:
aSessionId - java.lang.String
anEventName - java.lang.String
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException
Method Detail

addEvent

public void addEvent(java.lang.String anEventName)
Adds an event to the events list.

Parameters:
anEventName - java.lang.String

dispatchEvent

public Handler dispatchEvent(DSEEventObject anEvent)
Dispatchs the event anEvent. Calls the client/server mechanism sendEvent() method to send the event to a remote workstation.

Specified by:
dispatchEvent in interface Handler
Overrides:
dispatchEvent in class DSEHandler
Parameters:
anEvent - com.ibm.btt.base.DSEEventObject
Returns:
com.ibm.btt.base.Handler

getEventList

protected Hashtable getEventList()
Gets the eventList attribute value.

Returns:
com.ibm.btt.base.Hashtable

getSessionId

public java.lang.String getSessionId()
Gets the sessionId attribute value.

Returns:
java.lang.Long

getTID

public java.lang.String getTID()
Gets the tid attribute value.

Returns:
java.lang.String

hasEvents

public boolean hasEvents()
Returns true if there is any event in the events list.

Returns:
boolean

removeEvent

public void removeEvent(java.lang.String anEventName)
Removes an event from the events list.

Parameters:
anEvent - java.lang.String

setSessionId

public void setSessionId(java.lang.String aSessionId)
Sets the sessionId attribute to aSessionId.

Parameters:
aSessionId - java.lang.String

setTID

public void setTID(java.lang.String aTID)
Sets the tid attribute to aTID.

Parameters:
aTID - java.lang.String

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011