Package org.serviceconnector.server
Interface IStatefulServer
- All Superinterfaces:
IServer
- All Known Implementing Classes:
CascadedSC,StatefulServer
The Interface IStatefulServer.
-
Method Summary
Modifier and TypeMethodDescriptionvoidabortSession(AbstractSession session, String string) Abort session on server.voidaddSession(AbstractSession session) Adds an allocated session to the server.intGets the max sessions.intGets the session count.Gets the sessions.getType()Gets the server type.booleanChecks for free session.voidremoveSession(AbstractSession abstractSession) Removes an allocated session from the server.
-
Method Details
-
getType
ServerType getType()Gets the server type. -
abortSession
Abort session on server.- Specified by:
abortSessionin interfaceIServer- Parameters:
session- the sessionstring- the reason
-
removeSession
Removes an allocated session from the server.- Parameters:
abstractSession- the abstract session
-
addSession
Adds an allocated session to the server.- Parameters:
session- the session
-
getSessions
List<AbstractSession> getSessions()Gets the sessions.- Returns:
- the sessions
-
getSessionCount
int getSessionCount()Gets the session count.- Returns:
- the session count
-
hasFreeSession
boolean hasFreeSession()Checks for free session.- Returns:
- true, if successful
-
getMaxSessions
int getMaxSessions()Gets the max sessions.- Returns:
- the max sessions
-