|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.base.DSEHandler
com.ibm.dse.base.MirrorHandler
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.
Field Summary | |
---|---|
(package private) Hashtable |
eventList
|
(package private) java.lang.String |
sessionId
|
(package private) java.lang.String |
tid
|
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.dse.base.DSEHandler |
---|
handleEvent, handleEvent, stopHandlingEvent, stopHandlingEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String tid
java.lang.String sessionId
Hashtable eventList
Constructor Detail |
public MirrorHandler(CSClientService aCSClient, java.lang.String anEventName)
aCSClient
- CSClientServiceanEventName
- java.lang.Stringpublic MirrorHandler(java.lang.String aSessionId, java.lang.String anEventName) throws DSEInvalidRequestException, DSEObjectNotFoundException
aSessionId
- java.lang.StringanEventName
- java.lang.StringMethod Detail |
public void addEvent(java.lang.String anEventName)
anEventName
- java.lang.Stringpublic Handler dispatchEvent(DSEEventObject anEvent)
dispatchEvent
in interface Handler
dispatchEvent
in class DSEHandler
anEvent
- com.ibm.dse.base.DSEEventObject
protected Hashtable getEventList()
public java.lang.String getSessionId()
public java.lang.String getTID()
public boolean hasEvents()
public void removeEvent(java.lang.String anEventName)
public void setSessionId(java.lang.String aSessionId)
aSessionId
- java.lang.Stringpublic void setTID(java.lang.String aTID)
aTID
- java.lang.String
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |