Class SingleServerClusterMonitor
- java.lang.Object
-
- com.iplanet.dpro.session.service.cluster.SingleServerClusterMonitor
-
- All Implemented Interfaces:
ClusterMonitor
public class SingleServerClusterMonitor extends Object implements ClusterMonitor
No-op implementation of ClusterMonitor to be used when session fail-over is not enabled.- Since:
- 13.0.0
-
-
Constructor Summary
Constructors Constructor Description SingleServerClusterMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkServerUp(String serverID)
Indicates if the specified server is up.String
getCurrentHostServer(SessionID sid)
Identify the host (aka home or authoritative) server for the provided session.boolean
isSiteUp(String siteId)
Indicates if the specified site is up.void
shutdown()
No operation for this implementation.
-
-
-
Method Detail
-
isSiteUp
public boolean isSiteUp(String siteId)
Indicates if the specified site is up.- Specified by:
isSiteUp
in interfaceClusterMonitor
- Parameters:
siteId
- A possibly null Site Id.- Returns:
- True if the Site is up, False if it failed to respond to a query.
-
checkServerUp
public boolean checkServerUp(String serverID)
Indicates if the specified server is up.- Specified by:
checkServerUp
in interfaceClusterMonitor
- Parameters:
serverID
- server id- Returns:
- true if server is up, false otherwise
-
getCurrentHostServer
public String getCurrentHostServer(SessionID sid)
Identify the host (aka home or authoritative) server for the provided session. If the currently assigned host server for the session is found to be down, this method uses a deterministic algorithm to select a new one from those known to the clustering servive based on the session's STORAGE_KEY. This is the key method of "internal request routing".- Specified by:
getCurrentHostServer
in interfaceClusterMonitor
- Parameters:
sid
- SessionID for which the home server is to be found- Returns:
- server id for the server instance determined to be the current host
-
shutdown
public void shutdown()
No operation for this implementation.- Specified by:
shutdown
in interfaceClusterMonitor
-
-