Package com.caplin.server.auth
Interface ServerNode
-
public interface ServerNode
Contains information about the server and its sessions.
An instance of ServerNode is passed to the Authenticator in its
initialise
method. This can then be used at a later time to obtain the current server session count and the maximum session count the server supports. The server identifier is also available via thegetIdentifier()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCurrentSessionCount()
The current count of active sessions in the server.DataCache
getDataCache()
Get theDataCache
, through which objects can be created and deleted in the Liberator's object cache.java.lang.String
getIdentifier()
A string identifying the server node.int
getMaxSessionCount()
The maximum sessions supported by the server licence.
-
-
-
Method Detail
-
getIdentifier
java.lang.String getIdentifier()
A string identifying the server node.- Returns:
- the server node identifier
-
getCurrentSessionCount
int getCurrentSessionCount()
The current count of active sessions in the server.- Returns:
- the count of current sessions in the server
-
getMaxSessionCount
int getMaxSessionCount()
The maximum sessions supported by the server licence.- Returns:
- the maximum number of supported sessions
-
getDataCache
DataCache getDataCache()
Get theDataCache
, through which objects can be created and deleted in the Liberator's object cache.- Returns:
- an interface to the Liberator's object cache.
-
-