public class AuroraClusterMonitor
extends java.lang.Object
getMonitor(Set).
Currently there is no way to stop monitoring a cluster. So changes (both additions and removals) of aurora clusters will currently need a JVM restart in order to have the new monitoring behave correctly.
| Modifier and Type | Method and Description |
|---|---|
void |
expediteServerCheck(AuroraServer auroraServer)
Indicate a given server should be expedited in checking its current state.
|
AuroraServer |
getCurrentMaster()
Returns the current cluster master which can accept writes.
|
static AuroraClusterMonitor |
getMonitor(java.util.Set<AuroraServer> servers)
Return a monitor instance for a given set of servers.
|
AuroraServer |
getRandomReadReplica()
Return a random read only replica server.
|
public static AuroraClusterMonitor getMonitor(java.util.Set<AuroraServer> servers)
servers - Set of servers within the clusterpublic AuroraServer getRandomReadReplica()
null if no servers are healthypublic AuroraServer getCurrentMaster()
null if there is
not currently any healthy cluster members which can accept writes.null if no known one existspublic void expediteServerCheck(AuroraServer auroraServer)
auroraServer - Server identifier to be checked