|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.DSENotifier
com.ibm.btt.base.Service
com.ibm.btt.cs.servlet.CSServer
public class CSServer
The CSServer class implements the C/S service on the server side.
Field Summary | |
---|---|
protected CSInactivityClientListener |
aCSInactivityClientListener
Contains the listeners of the CSInactivityClientEvent events. |
protected CSNotificationListener |
aCSNotificationListener
Contains the listeners of the CSNotificationEvent events. |
protected CSProcessorInactivityListener |
aCSProcessorInactivityListener
Contains the listeners of the CSProcessorInactivityEvent events. |
(package private) CSReplyErrorEventListener |
aCSReplyErrorEventListener
|
protected CSSessionManager |
csSessionManager
Schedular which performs the expired session check. |
static int |
INITIATED
Flag indicating that the server is initiated. |
protected static java.lang.Boolean |
sessionAffinity
Attribute indicating whether this PERSISTENCE server configuration is supposed to work with affinity. |
protected static java.lang.Boolean |
sessionPersistence
Attribute indicating whether this server configuration is supposed to persist sessions or not. |
static int |
STOPPED
Flag indicating that the server is stopped. |
static java.util.Hashtable |
synchronizedEvents
Contains information about clients who are waiting for events |
Fields inherited from class com.ibm.btt.base.Service |
---|
externalizer, name |
Fields inherited from class com.ibm.btt.base.DSENotifier |
---|
handlersList |
Fields inherited from interface com.ibm.btt.clientserver.CSServerService |
---|
CS_INACTIVITY_CLIENT_EVENT, CS_SESSION_EXPIRED |
Constructor Summary | |
---|---|
CSServer()
This constructor creates a CSServer object. |
|
CSServer(java.lang.String aName)
This constructor creates a CSServer object. |
Method Summary | |
---|---|
void |
addCSInactivityClientListener(CSInactivityClientListener newListener)
Adds the specified CSInactivityClientListener to recieve CSInactivityClientEvents from this class. |
void |
addCSNotificationListener(CSNotificationListener newListener)
Adds the specified CSNotificationListener to recieve CSNotificationEvents from this class. |
void |
addCSProcessorInactivityListener(CSProcessorInactivityListener newListener)
Adds the specified CSProcessorInactivityListener to recieve CSProcessorInactivityEvents from this class. |
void |
addCSReplyErrorEventListener(CSReplyErrorEventListener newListener)
Adds the specified CSReplyErrorEventListener to receive CSReplyErrorEvents from this class. |
void |
checkExpiredSessions()
When an expired session is found, fire an event and mark the session as expired. |
void |
finalize()
In the finalize method, if the server is running it is stopped. |
void |
fireAndSignalCSInactivityClientEvent(CSInactivityClientEvent anEvent,
java.lang.String eventName)
Method to support listener events. |
void |
fireAndSignalCSProcessorInactivityEvent(CSProcessorInactivityEvent anEvent,
java.lang.String eventName)
Method to support listener events. |
void |
fireAndSignalCSReplyErrorEvent(CSReplyErrorEvent anEvent,
java.lang.String eventName)
method to discrimate exceptions |
void |
fireHandleCSInactivityClientEvent(CSInactivityClientEvent event)
Method to support listener events. |
void |
fireHandleCSNotificationEvent(CSNotificationEvent event)
Supports listener events. |
void |
fireHandleCSProcessorInactivityEvent(CSProcessorInactivityEvent event)
Method to support listener events. |
protected void |
fireHandleCSReplyErrorEvent(CSReplyErrorEvent event)
method for the discrimatation of exceptions requeriment for the WSBCC 430 release |
long |
getAppSessionTimeout()
Gets the appSessionTimeout |
long |
getInactivityClientTimeout()
Returns the value of the inactivityClientTimeout property. |
static CSServer |
getInstance()
Get the instance from the context hierarchy. |
long |
getMinTimeStamp()
Returns the value of the minTimeStamp property. |
NotificationEventsBuffer |
getNotificationEventsBuffer()
Gets the _notificationEventsBuffer property (com.ibm.btt.clientserver.NotificationEventsBuffer) value. |
long |
getOutputTimeout()
Gets the outputTimeout property (long) value. |
boolean |
getPermanentConnectionForEvents()
Obtains the permanentConnectionForEvents attribute. |
long |
getPersistTimeout()
Gets the persistTimeout property (long) value. |
java.lang.String |
getRootDirectory()
Gets the _rootDirectory property (String) value. |
long |
getServerId()
Gets the serverId property (long) value. |
int |
getServerStatus()
Gets the _serverStatus property (int) value. |
java.util.Hashtable |
getSynchronizedEvents()
Returns information about clients who are waiting for events |
long |
getTimeBetweenSessionCheck()
Returns the value of the timeBetweenSessionCheck property. |
java.lang.Object |
initializeFrom(Tag aTag)
Actualizes all attributes that are defined in SGML file. |
protected static void |
initializePersistence()
Updates the static attributes of CSServer sessionPersistence and sessionAffinity. |
void |
initiateServer()
Initiates the server. |
boolean |
isSessionAffinity()
Returns the value of the attribute sessionAffinity. |
boolean |
isSessionPersistence()
Returns the value of the attribute sessionPersistence. |
void |
removeCSInactivityClientListener(CSInactivityClientListener newListener)
Removes the specified CSInactivityClientListener so that it no longer receives CSInactivityClientEvents from this class. |
void |
removeCSNotificationListener(CSNotificationListener newListener)
Removes the specified CSNotificationListener so that it no longer receives CSNotificationEvents from this class. |
void |
removeCSProcessorInactivityListener(CSProcessorInactivityListener newListener)
Adds the specified CSProcessorInactivityListener to recieve CSProcessorInactivityEvents from this class. |
void |
sendEvent(java.lang.String ws,
java.util.EventObject anEvent)
Sends an event from server to the specified client workstation |
void |
sendEvent(java.lang.String ws,
java.util.EventObject anEvent,
boolean waitForDelivery)
Sends an event from server to the specified client workstation If "waitForDelivery" is true, an exception is thrown if a problem occurs during the connection made to send the event. |
void |
sendEvent(java.lang.String ipAddress,
int eventsPort,
java.util.EventObject anEvent,
boolean waitForDelivery)
Sends an event from server to the specified ipAddress and port. |
void |
sessionAdded(ChannelSessionStateChangedEvent anEvent)
sessionAdded method comment. |
void |
sessionRemoved(ChannelSessionStateChangedEvent anEvent)
Fire and signal the inactivity timeout for the application to perform any necessary house keeping |
void |
setAppSessionTimeout(long appSessionTimeout)
Sets the appSessionTimeout |
void |
setInactivityClientTimeout(long value)
Sets the value of the inactivityClientTimeout property. |
void |
setMinTimeStamp(long value)
Sets the value of the minTimeStamp property. |
void |
setNotificationEventsBuffer(NotificationEventsBuffer buffer)
Sets the _notificationEventsBuffer property (com.ibm.btt.clientserver.NotificationEventsBuffer) value. |
void |
setOutputTimeout(long aOutputTimeout)
Sets the outputTimeout property (long) value. |
void |
setPermanentConnectionForEvents(boolean permConnection)
Sets the permanentConnectionForEvents attribute. |
void |
setPersistTimeout(long aPersistTimeout)
Sets the persistTimeout property (long) value. |
void |
setRootDirectory(java.lang.String rootDirectory)
Sets the _rootDirectory property (java.lang.String) value. |
static void |
setSessionAffinity(boolean newSessionAffinity)
Updates the sessionAffinity attribute. |
static void |
setSessionPersistence(boolean newSessionPersistence)
Updates the sessionPersistence attribute. |
void |
setTimeBetweenSessionCheck(long value)
Sets the value of the timeBetweenSessionCheck property. |
void |
stopServer()
Stops the server. |
void |
terminate()
This is called either from the application or from the context when it is destroyed or unchained. |
java.lang.String |
toString()
Returns an XML representation. |
Methods inherited from class com.ibm.btt.base.Service |
---|
externalizer, getExternalizer, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, toStrings, toTags, writeExternal, writeExternal |
Methods inherited from class com.ibm.btt.base.DSENotifier |
---|
addHandler, getHandlersList, getName, removeHandler, setName, signalEvent, signalEvent, signalEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.btt.base.Notifier |
---|
addHandler, getHandlersList, getName, removeHandler, setName, signalEvent, signalEvent |
Methods inherited from interface com.ibm.btt.base.Externalizable |
---|
getName, setName |
Field Detail |
---|
CSReplyErrorEventListener aCSReplyErrorEventListener
protected transient CSNotificationListener aCSNotificationListener
public static final int INITIATED
public static final int STOPPED
public static java.util.Hashtable synchronizedEvents
protected CSSessionManager csSessionManager
protected transient CSInactivityClientListener aCSInactivityClientListener
protected transient CSProcessorInactivityListener aCSProcessorInactivityListener
protected static java.lang.Boolean sessionPersistence
protected static java.lang.Boolean sessionAffinity
Constructor Detail |
---|
public CSServer() throws DSECSServerServiceAlreadyExistsException
DSECSServerServiceAlreadyExistsException
public CSServer(java.lang.String aName) throws java.io.IOException, DSECSServerServiceAlreadyExistsException
s
- java.lang.String
java.io.IOException
DSECSServerServiceAlreadyExistsException
Method Detail |
---|
public static CSServer getInstance()
public void addCSInactivityClientListener(CSInactivityClientListener newListener)
addCSInactivityClientListener
in interface CSServerService
newListener
- com.ibm.btt.cs.servlet.CSInactivityClientListenerpublic void addCSNotificationListener(CSNotificationListener newListener)
addCSNotificationListener
in interface CSServerService
newListener
- com.ibm.btt.clientserver.CSNotificationListenerpublic void addCSProcessorInactivityListener(CSProcessorInactivityListener newListener)
addCSProcessorInactivityListener
in interface CSServerService
newListener
- com.ibm.btt.cs.servlet.CSProcessorInactivityListenerpublic void checkExpiredSessions() throws DSEInvalidRequestException, DSEObjectNotFoundException
checkExpiredSessions
in interface CSServerService
DSEInvalidRequestException
DSEObjectNotFoundException
public void finalize()
finalize
in class java.lang.Object
public void fireAndSignalCSInactivityClientEvent(CSInactivityClientEvent anEvent, java.lang.String eventName)
fireAndSignalCSInactivityClientEvent
in interface CSServerService
event
- com.ibm.btt.cs.servlet.CSInactivityClientEventpublic void fireAndSignalCSProcessorInactivityEvent(CSProcessorInactivityEvent anEvent, java.lang.String eventName)
fireAndSignalCSProcessorInactivityEvent
in interface CSServerService
event
- com.ibm.btt.cs.servlet.CSProcessorInactivityEventpublic void fireHandleCSInactivityClientEvent(CSInactivityClientEvent event)
fireHandleCSInactivityClientEvent
in interface CSServerService
event
- com.ibm.btt.cs.servlet.CSInactivityClientEventpublic void fireHandleCSNotificationEvent(CSNotificationEvent event)
fireHandleCSNotificationEvent
in interface CSServerService
event
- com.ibm.btt.clientserver.CSNotificationEventpublic void fireHandleCSProcessorInactivityEvent(CSProcessorInactivityEvent event)
fireHandleCSProcessorInactivityEvent
in interface CSServerService
event
- com.ibm.btt.cs.servlet.CSProcessorInactivityEventpublic long getAppSessionTimeout()
getAppSessionTimeout
in interface CSServerService
public long getInactivityClientTimeout()
getInactivityClientTimeout
in interface CSServerService
public long getMinTimeStamp()
getMinTimeStamp
in interface CSServerService
public NotificationEventsBuffer getNotificationEventsBuffer()
public long getOutputTimeout()
public long getPersistTimeout()
public java.lang.String getRootDirectory()
public long getServerId()
public int getServerStatus()
getServerStatus
in interface CSServerService
public java.util.Hashtable getSynchronizedEvents()
getSynchronizedEvents
in interface CSServerService
public long getTimeBetweenSessionCheck()
getTimeBetweenSessionCheck
in interface CSServerService
public java.lang.Object initializeFrom(Tag aTag)
initializeFrom
in class Service
aTag
- com.ibm.btt.base.Tag
protected static void initializePersistence()
public void initiateServer() throws DSECSInvalidRequestException, DSECSServerNotStartedException
initiateServer
in interface CSServerService
DSECSInvalidRequestException
DSECSServerNotStartedException
public boolean isSessionAffinity()
isSessionAffinity
in interface CSServerService
public boolean isSessionPersistence()
isSessionPersistence
in interface CSServerService
public void removeCSInactivityClientListener(CSInactivityClientListener newListener)
removeCSInactivityClientListener
in interface CSServerService
newListener
- com.ibm.btt.cs.servlet.CSInactivityClientListenerpublic void removeCSNotificationListener(CSNotificationListener newListener)
removeCSNotificationListener
in interface CSServerService
newListener
- com.ibm.btt.clientserver.CSNotificationListenerpublic void removeCSProcessorInactivityListener(CSProcessorInactivityListener newListener)
removeCSProcessorInactivityListener
in interface CSServerService
newListener
- com.ibm.btt.cs.servlet.CSProcessorInactivityListenerpublic void sendEvent(java.lang.String ws, java.util.EventObject anEvent)
sendEvent
in interface CSServerService
ws
- java.lang.StringanEvent
- Eventpublic void sendEvent(java.lang.String ws, java.util.EventObject anEvent, boolean waitForDelivery) throws DSECSSocketException
sendEvent
in interface CSServerService
ws
- java.lang.StringanEvent
- EventwaitForDelivery
- boolean
DSECSSocketException
public void sessionAdded(ChannelSessionStateChangedEvent anEvent)
sessionAdded
in interface ChannelSessionStateChangedListener
anEvent
- com.ibm.btt.clientserver.ChannelSessionStateChangedEventpublic void sessionRemoved(ChannelSessionStateChangedEvent anEvent)
sessionRemoved
in interface ChannelSessionStateChangedListener
anEvent
- com.ibm.btt.clientserver.ChannelSessionStateChangedEventpublic void setAppSessionTimeout(long appSessionTimeout)
setAppSessionTimeout
in interface CSServerService
appSessionTimeout
- The appSessionTimeout to setpublic void setInactivityClientTimeout(long value)
setInactivityClientTimeout
in interface CSServerService
value
- long The new value of the property.public void setMinTimeStamp(long value)
setMinTimeStamp
in interface CSServerService
value
- long The new value of the property.public void setNotificationEventsBuffer(NotificationEventsBuffer buffer)
buffer
- com.ibm.btt.clientserver.NotificationEventsBufferpublic void setOutputTimeout(long aOutputTimeout)
setOutputTimeout
in interface CSServerService
aOutputTimeout
- longpublic void setPersistTimeout(long aPersistTimeout)
setPersistTimeout
in interface CSServerService
aPersistTimeout
- longpublic void setRootDirectory(java.lang.String rootDirectory)
rootDirectory
- java.lang.Stringpublic static void setSessionAffinity(boolean newSessionAffinity)
newSessionAffinity
- booleanpublic static void setSessionPersistence(boolean newSessionPersistence)
newSessionPersistence
- booleanpublic void setTimeBetweenSessionCheck(long value)
setTimeBetweenSessionCheck
in interface CSServerService
value
- long The new value of the property.public void stopServer() throws DSECSInvalidRequestException
stopServer
in interface CSServerService
DSECSInvalidRequestException
public void terminate() throws DSEException
terminate
in interface Notifier
terminate
in class Service
DSEException
public java.lang.String toString()
toString
in class Service
public void setPermanentConnectionForEvents(boolean permConnection)
setPermanentConnectionForEvents
in interface CSServerService
permConnection
- booleanpublic boolean getPermanentConnectionForEvents()
getPermanentConnectionForEvents
in interface CSServerService
public void sendEvent(java.lang.String ipAddress, int eventsPort, java.util.EventObject anEvent, boolean waitForDelivery) throws DSECSSocketException
sendEvent
in interface CSServerService
ipAddress
- java.lang.Stringport
- intanEvent
- EventwaitForDelivery
- boolean
DSECSSocketException
public void addCSReplyErrorEventListener(CSReplyErrorEventListener newListener)
addCSReplyErrorEventListener
in interface CSServerService
newListener
- com.ibm.btt.cs.servlet.CSReplyErrorEventListenerprotected void fireHandleCSReplyErrorEvent(CSReplyErrorEvent event)
public void fireAndSignalCSReplyErrorEvent(CSReplyErrorEvent anEvent, java.lang.String eventName)
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |