|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DSENotifier | +--com.ibm.dse.base.Service | +--com.ibm.dse.cs.servlet.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 CSSessionManager |
csSessionManagerThread
Thread which performs the expired session check. |
static int |
INITIATED
Flag indicating that the server is initiated. |
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.dse.base.Service |
externalizer |
Fields inherited from class com.ibm.dse.base.DSENotifier |
handlersList,
name |
Fields inherited from interface com.ibm.dse.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 |
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. |
protected void |
fireHandleCSInactivityClientEvent(CSInactivityClientEvent event)
Method to support listener events. |
void |
fireHandleCSNotificationEvent(CSNotificationEvent event)
Supports listener events. |
protected CSSessionManager |
getCSSessionManagerThread()
Returns the value of the csSessionManagerThread property. |
long |
getInactivityClientTimeout()
Returns the value of the inactivityClientTimeout property. |
long |
getMinTimeStamp()
Returns the value of the minTimeStamp property. |
NotificationEventsBuffer |
getNotificationEventsBuffer()
Gets the _notificationEventsBuffer property (com.ibm.dse.clientserver.NotificationEventsBuffer) value. |
long |
getOutputTimeout()
Gets the outputTimeout property (long) value. |
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. |
long |
getTimeBetweenSessionCheck()
Returns the value of the timeBetweenSessionCheck property. |
java.lang.Object |
initializeFrom(Tag aTag)
Actualizes all attributes that are defined in SGML file. |
void |
initiateServer()
Initiates the server. |
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 |
sendEvent(java.lang.String ws,
java.util.EventObject anEvent)
Sends an event from server to the specified client workstation |
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 |
protected void |
setCSSessionManagerThread(CSSessionManager newCSSessionManagerThread)
Sets the value of the csSessionManagerThread property. |
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.dse.clientserver.NotificationEventsBuffer) value. |
protected void |
setOutputTimeout(long aOutputTimeout)
Sets the outputTimeout property (long) value. |
protected void |
setPersistTimeout(long aPersistTimeout)
Sets the persistTimeout property (long) value. |
void |
setRootDirectory(java.lang.String rootDirectory)
Sets the _rootDirectory property (java.lang.String) value. |
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.dse.base.Service |
externalizer,
getExternalizer,
getTagName,
readExternal,
readExternal,
readObject,
removeExternal,
setExternalizer,
toStrings,
toTags,
writeExternal,
writeExternal |
Methods inherited from class com.ibm.dse.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 |
Field Detail |
protected transient CSNotificationListener aCSNotificationListener
public static final int INITIATED
public static final int STOPPED
public static java.util.Hashtable synchronizedEvents
protected CSSessionManager csSessionManagerThread
protected transient CSInactivityClientListener aCSInactivityClientListener
Constructor Detail |
public CSServer() throws DSECSServerServiceAlreadyExistsException
public CSServer(java.lang.String aName) throws java.io.IOException, DSECSServerServiceAlreadyExistsException
s
- java.lang.StringMethod Detail |
public void addCSInactivityClientListener(CSInactivityClientListener newListener)
newListener
- com.ibm.dse.cs.servlet.CSInactivityClientListenerpublic void addCSNotificationListener(CSNotificationListener newListener)
newListener
- com.ibm.dse.clientserver.CSNotificationListenerpublic void finalize()
public void fireAndSignalCSInactivityClientEvent(CSInactivityClientEvent anEvent, java.lang.String eventName)
event
- com.ibm.dse.cs.servlet.CSInactivityClientEventprotected void fireHandleCSInactivityClientEvent(CSInactivityClientEvent event)
event
- com.ibm.dse.cs.servlet.CSInactivityClientEventpublic void fireHandleCSNotificationEvent(CSNotificationEvent event)
event
- com.ibm.dse.clientserver.CSNotificationEventprotected CSSessionManager getCSSessionManagerThread()
public long getInactivityClientTimeout()
public long getMinTimeStamp()
public NotificationEventsBuffer getNotificationEventsBuffer()
public long getOutputTimeout()
public long getPersistTimeout()
public java.lang.String getRootDirectory()
public long getServerId()
public int getServerStatus()
public long getTimeBetweenSessionCheck()
public java.lang.Object initializeFrom(Tag aTag)
aTag
- com.ibm.dse.base.Tagpublic void initiateServer() throws DSECSInvalidRequestException, DSECSServerNotStartedException
public void removeCSInactivityClientListener(CSInactivityClientListener newListener)
newListener
- com.ibm.dse.cs.servlet.CSInactivityClientListenerpublic void removeCSNotificationListener(CSNotificationListener newListener)
newListener
- com.ibm.dse.clientserver.CSNotificationListenerpublic void sendEvent(java.lang.String ws, java.util.EventObject anEvent)
wk
- java.lang.StringanEvent
- Eventpublic void sessionAdded(ChannelSessionStateChangedEvent anEvent)
anEvent
- com.ibm.dse.clientserver.ChannelSessionStateChangedEventpublic void sessionRemoved(ChannelSessionStateChangedEvent anEvent)
anEvent
- com.ibm.dse.clientserver.ChannelSessionStateChangedEventprotected void setCSSessionManagerThread(CSSessionManager newCSSessionManagerThread)
newExpiredSessionsCheckerThread
- com.ibm.dse.clientserver.ExpiredSessionsChecker - The new value of the property csSessionManagerThread.public void setInactivityClientTimeout(long value)
value
- long The new value of the property.public void setMinTimeStamp(long value)
value
- long The new value of the property.public void setNotificationEventsBuffer(NotificationEventsBuffer buffer)
buffer
- com.ibm.dse.clientserver.NotificationEventsBufferprotected void setOutputTimeout(long aOutputTimeout)
aOutputTimeout
- longprotected void setPersistTimeout(long aPersistTimeout)
aPersistTimeout
- longpublic void setRootDirectory(java.lang.String rootDirectory)
rootDirectory
- java.lang.Stringpublic void setTimeBetweenSessionCheck(long value)
value
- long The new value of the property.public void stopServer() throws DSECSInvalidRequestException
public void terminate() throws DSEException
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |