|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--com.ibm.retail.AEF.util.AEFRemoteObject | +--com.ibm.retail.AEF.client.AEFEventListenerProxy | +--com.ibm.retail.AEF.client.SessionStatusListenerProxy
SessionStatusListenerProxy provides a proxy object for remote listeners to monitor the SessionStatus events of its associated terminal session.
Remote proxy objects extend the appropriate RMI server classes which handle the RMI duties for the client (so the client does not need to deal with rmi server issues). The proxy objects also perform the role of event dispatching.
By default, the listener proxy object will perform event queuing on an AEF event thread. This relieves the client of any "thread swapping" responsibilities and insures that the AEF event dispatching performance is not affected by client processing. To override this default behavior, use the setDispatchQueue() method. The proxy utilizes the EventDispatcher for queueing event listener notification.
To use a proxy object, the client must implement the listener interface and get the POSDataProvider object from the AEFSession to monitor. The proxy object is then constructed passing a reference to the client and the data provider. The proxy object performs the listener registration and forwards all events from the data provider to the client.
EventDispatcher
,
Serialized FormField Summary | |
---|---|
protected com.ibm.retail.AEF.session.SessionStatusListener |
listener
|
protected com.ibm.retail.AEF.session.AEFSession |
session
|
protected static java.lang.reflect.Method |
sessionEndedMethod
|
protected static java.lang.reflect.Method |
sessionReadyMethod
|
protected static java.lang.reflect.Method |
sessionStatusChangedMethod
|
Fields inherited from class com.ibm.retail.AEF.client.AEFEventListenerProxy |
---|
dispatchQueueName, SOCKET_CONNECT_TIMEOUT, SOCKET_READ_TIMEOUT |
Fields inherited from class com.ibm.retail.AEF.util.AEFRemoteObject |
---|
DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT |
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
SessionStatusListenerProxy(com.ibm.retail.AEF.session.AEFSession session,
com.ibm.retail.AEF.session.SessionStatusListener listener)
Construct a SessionStatusListenerProxy. |
|
SessionStatusListenerProxy(com.ibm.retail.AEF.session.AEFSession session,
com.ibm.retail.AEF.session.SessionStatusListener listener,
int soTimeout,
int connectTimeout)
Construct a SessionStatusListenerProxy. |
Method Summary | |
---|---|
(package private) static java.lang.String |
copyright()
|
void |
removeListener()
Remove the proxy listener from AEFSession. |
void |
sessionEnded(com.ibm.retail.AEF.session.SessionStatusEvent evt)
The session ended. |
void |
sessionReady(com.ibm.retail.AEF.session.SessionStatusEvent evt)
The session is ready. |
void |
sessionStatusChanged(com.ibm.retail.AEF.session.SessionStatusEvent evt)
A session status event has occurred. |
Methods inherited from class com.ibm.retail.AEF.client.AEFEventListenerProxy |
---|
dispatchEvent, getDispatchQueueName, getListenerMethod, setDispatchQueueName |
Methods inherited from class com.ibm.retail.AEF.util.AEFRemoteObject |
---|
getClientSocketConnectTimeout, getClientSocketReadTimeout |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static java.lang.reflect.Method sessionStatusChangedMethod
protected static java.lang.reflect.Method sessionReadyMethod
protected static java.lang.reflect.Method sessionEndedMethod
protected com.ibm.retail.AEF.session.AEFSession session
protected com.ibm.retail.AEF.session.SessionStatusListener listener
Constructor Detail |
public SessionStatusListenerProxy(com.ibm.retail.AEF.session.AEFSession session, com.ibm.retail.AEF.session.SessionStatusListener listener) throws java.rmi.RemoteException, AEFException
session
- instance of AEFSession which is the source of eventslistener
- client listener which receives the event notification via this proxy
java.rmi.RemoteException
AEFException
- Among the possible AEFException error codes are:
public SessionStatusListenerProxy(com.ibm.retail.AEF.session.AEFSession session, com.ibm.retail.AEF.session.SessionStatusListener listener, int soTimeout, int connectTimeout) throws java.rmi.RemoteException, AEFException
session
- instance of AEFSession which is the source of eventslistener
- client listener which receives the event notification via this proxy
java.rmi.RemoteException
AEFException
- Among the possible AEFException error codes are:
Method Detail |
static java.lang.String copyright()
public void removeListener() throws java.rmi.RemoteException, AEFException
removeListener
in interface AEFListenerProxyInterface
java.rmi.RemoteException
AEFException
- Among the possible AEFException error codes are:
public void sessionStatusChanged(com.ibm.retail.AEF.session.SessionStatusEvent evt) throws java.rmi.RemoteException
sessionStatusChanged
in interface SessionStatusListener
evt
- SessionStatusEvent
java.rmi.RemoteException
public void sessionReady(com.ibm.retail.AEF.session.SessionStatusEvent evt) throws java.rmi.RemoteException
sessionReady
in interface SessionStatusListener
evt
- SessionStatusEvent
java.rmi.RemoteException
public void sessionEnded(com.ibm.retail.AEF.session.SessionStatusEvent evt) throws java.rmi.RemoteException
sessionEnded
in interface SessionStatusListener
evt
- SessionStatusEvent
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |