|
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.event.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. |
static java.lang.String |
COPYRIGHT
|
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 |
protected static CSServer |
uniqueInstance
|
Fields inherited from interface com.ibm.btt.event.CSServerService |
---|
CS_INACTIVITY_CLIENT_EVENT, CS_SESSION_EXPIRED |
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 |
addHandler(Handler aHandler,
java.lang.String anEventName)
|
void |
finalize()
In the finalize method, if the server is running it is stopped. |
void |
fireAndSignalCSInactivityClientEvent(CSInactivityClientEvent anEvent,
java.lang.String eventName)
Fire and signal the CSInactivityClientEvent |
void |
fireHandleCSInactivityClientEvent(CSInactivityClientEvent event)
Method to support listener events. |
void |
fireHandleCSNotificationEvent(CSNotificationEvent event)
Supports listener events. |
long |
getAppSessionTimeout()
Gets the appSessionTimeout |
java.util.Hashtable |
getHandlersList()
|
long |
getInactivityClientTimeout()
Returns the value of the inactivityClientTimeout property. |
static CSServer |
getInstance()
Returns the unique instance of running on the application environment. |
long |
getMinTimeStamp()
Returns the value of the minTimeStamp property. |
java.lang.String |
getName()
Returns the name of Notifier. |
NotificationEventsBuffer |
getNotificationEventsBuffer()
Gets the _notificationEventsBuffer property (com.ibm.dse.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. |
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 |
readExternal()
Reads external settings from the property file. |
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 |
removeHandler(Handler aHandler,
java.lang.String anEventName)
|
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 |
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 |
setName(java.lang.String aName)
Sets the name of Notifier. |
void |
setNotificationEventsBuffer(NotificationEventsBuffer buffer)
Sets the _notificationEventsBuffer property (com.ibm.dse.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 |
signalEvent(java.lang.String anEventName)
This method is to fire the event. |
void |
signalEvent(java.lang.String anEventName,
java.util.Hashtable aParametersTable)
This method is to fire the event. |
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 java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected static CSServer uniqueInstance
protected transient CSNotificationListener aCSNotificationListener
public static final int INITIATED
public static final int STOPPED
public static java.util.Hashtable synchronizedEvents
protected transient CSInactivityClientListener aCSInactivityClientListener
protected static java.lang.Boolean sessionPersistence
protected static java.lang.Boolean sessionAffinity
Method Detail |
---|
public void readExternal()
public void addCSInactivityClientListener(CSInactivityClientListener newListener)
addCSInactivityClientListener
in interface CSServerService
newListener
- com.ibm.dse.cs.servlet.CSInactivityClientListenerpublic void addCSNotificationListener(CSNotificationListener newListener)
addCSNotificationListener
in interface CSServerService
newListener
- com.ibm.dse.clientserver.CSNotificationListenerpublic void finalize()
finalize
in class java.lang.Object
public void fireAndSignalCSInactivityClientEvent(CSInactivityClientEvent anEvent, java.lang.String eventName)
fireAndSignalCSInactivityClientEvent
in interface CSServerService
anEvent
- the CSInactivityClientEvent eventeventName
- the event namepublic void fireHandleCSInactivityClientEvent(CSInactivityClientEvent event)
fireHandleCSInactivityClientEvent
in interface CSServerService
event
- com.ibm.dse.cs.servlet.CSInactivityClientEventpublic void fireHandleCSNotificationEvent(CSNotificationEvent event)
fireHandleCSNotificationEvent
in interface CSServerService
event
- com.ibm.dse.clientserver.CSNotificationEventpublic 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
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.dse.cs.servlet.CSInactivityClientListenerpublic void removeCSNotificationListener(CSNotificationListener newListener)
removeCSNotificationListener
in interface CSServerService
newListener
- com.ibm.dse.clientserver.CSNotificationListenerpublic 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 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.dse.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
DSEException
public java.lang.String toString()
toString
in class java.lang.Object
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.StringeventsPort
- intanEvent
- EventwaitForDelivery
- boolean
DSECSSocketException
public static CSServer getInstance()
public void addHandler(Handler aHandler, java.lang.String anEventName) throws DSEInvalidArgumentException
DSEInvalidArgumentException
public java.util.Hashtable getHandlersList()
public java.lang.String getName()
Notifier
getName
in interface Notifier
public void removeHandler(Handler aHandler, java.lang.String anEventName) throws DSEInvalidArgumentException, DSEHandlerNotFoundException
DSEInvalidArgumentException
DSEHandlerNotFoundException
public void setName(java.lang.String aName)
Notifier
setName
in interface Notifier
aName
- java.lang.Stringpublic void signalEvent(java.lang.String anEventName) throws DSEInvalidArgumentException
Notifier
signalEvent
in interface Notifier
anEventName
- java.lang.String
DSEInvalidArgumentException
public void signalEvent(java.lang.String anEventName, java.util.Hashtable aParametersTable) throws DSEInvalidArgumentException
Notifier
signalEvent
in interface Notifier
anEventName
- java.lang.StringaParametersTable
- java.util.Hashtable
DSEInvalidArgumentException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |