Package org.serviceconnector.service
Class SessionService
java.lang.Object
org.serviceconnector.service.Service
org.serviceconnector.service.StatefulService
org.serviceconnector.service.SessionService
The Class SessionService. SessionService is a remote interface to a session service and provides communication functions.
-
Field Summary
Fields inherited from class org.serviceconnector.service.StatefulService
listOfServers, serverIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocateServerAndCreateSession(SCMPMessage msgToForward, CreateSessionCommandCallback callback, Session session, int timeoutMillis) Allocate server and create session.Methods inherited from class org.serviceconnector.service.StatefulService
addServer, dump, getCountAllocatedSessions, getCountAvailableSessions, getCountServers, getServerList, notifyRemovedSession, removeServer, toStringMethods inherited from class org.serviceconnector.service.Service
getName, getType, isEnabled, setEnabled
-
Constructor Details
-
SessionService
Instantiates a new session service.- Parameters:
name- the name
-
-
Method Details
-
allocateServerAndCreateSession
public void allocateServerAndCreateSession(SCMPMessage msgToForward, CreateSessionCommandCallback callback, Session session, int timeoutMillis) throws Exception Allocate server and create session.- Parameters:
msgToForward- the message to forwardcallback- the callbacksession- the sessiontimeoutMillis- the timeout in milliseconds- Throws:
Exception- the exception
-