public class MultiServerClusterMonitor extends Object implements ClusterMonitor
Constructor and Description |
---|
MultiServerClusterMonitor(Debug sessionDebug,
SessionServiceConfig serviceConfig,
SessionServerConfig serverConfig) |
Modifier and Type | Method and 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()
Signals that this ClusterMonitor should be shutdown.
|
public MultiServerClusterMonitor(Debug sessionDebug, SessionServiceConfig serviceConfig, SessionServerConfig serverConfig) throws Exception
sessionDebug
- The session debug instance.serviceConfig
- The configuration for the session service.serverConfig
- The configuration for the session server.Exception
public boolean isSiteUp(String siteId)
isSiteUp
in interface ClusterMonitor
siteId
- A possibly null Site Id.public boolean checkServerUp(String serverID)
checkServerUp
in interface ClusterMonitor
serverID
- server idpublic String getCurrentHostServer(SessionID sid) throws SessionException
getCurrentHostServer
in interface ClusterMonitor
sid
- SessionID for which the home server is to be foundSessionException
public void shutdown()
ClusterStateService
to cancel
its runnable thread.
Thread Safety: Synchronized to prevent possible multiple calls which
would break state in the underlying GeneralRunnableTask framework.shutdown
in interface ClusterMonitor
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.