public class GlobalAuroraTopologyMonitor extends ClusterTopologyMonitorImpl
| Modifier and Type | Field and Description |
|---|---|
protected @Nullable java.util.Set<java.lang.String> |
accessibleRegions |
protected java.util.Map<java.lang.String,HostSpec> |
instanceTemplatesByRegion |
protected RdsUtils |
rdsUtils |
protected GlobalAuroraTopologyUtils |
topologyUtils |
closeConnectionNetworkTimeoutMs, clusterId, completedOneCycle, connectionHandler, defaultConnectionTimeoutMs, defaultSocketTimeoutMs, fatalError, highRefreshPeriodAfterPanicNano, highRefreshRateEndTimeNano, highRefreshRateNano, hostSpecExtractor, initialHostSpec, instanceTemplate, lastKnownWriterHostSpec, logUnclosedConnections, MONITORING_PROPERTY_PREFIX, monitoringConnection, monitoringProperties, monitorTerminationTimeoutSec, networkTimeoutExecutor, nodeExecutorLock, nodeExecutorService, nodeThreadsConnections, nodeThreadsLatestTopology, nodeThreadsStop, nodeThreadsWriterHostSpec, properties, rdsHelper, readerTopologiesById, refreshRateNano, requestToUpdateTopology, servicesContainer, stableTopologiesStartNano, submittedNodes, topologyUpdated, writerHostSpeclastActivityTimestampNanos, monitorExecutor, state, stop, terminationTimeoutSec| Constructor and Description |
|---|
GlobalAuroraTopologyMonitor(FullServicesContainer servicesContainer,
GlobalAuroraTopologyUtils topologyUtils,
java.lang.String clusterId,
HostSpec initialHostSpec,
java.util.Properties properties,
HostSpec instanceTemplate,
long refreshRateNano,
long highRefreshRateNano,
java.util.Map<java.lang.String,HostSpec> instanceTemplatesByRegion) |
| Modifier and Type | Method and Description |
|---|---|
protected MonitoringConnectionHandler |
createConnectionHandler() |
protected java.util.List<HostSpec> |
filterHostsForNodeMonitoring(java.util.List<HostSpec> hosts)
Filters the list of hosts that should be used for node monitoring during panic mode.
|
protected HostSpec |
getInstanceTemplate(@Nullable java.lang.String instanceId,
java.sql.Connection connection) |
java.util.List<Pair<java.lang.String,java.lang.Object>> |
getSnapshotState() |
protected long |
getStableTopologiesDurationNano() |
protected @Nullable java.util.List<HostSpec> |
openAnyConnectionAndUpdateTopology() |
protected @Nullable java.util.List<HostSpec> |
queryForTopology(java.sql.Connection connection) |
canDispose, checkForStableReaderTopologies, clearTopologyCache, close, closeConnection, closeNodeMonitors, createNodeExecutorService, delay, fetchTopologyAndUpdateCache, forceRefresh, getConnectionHandler, getNodeMonitoringWorker, getStoredHosts, isInPanicMode, isUnresolvableDueToMisconfiguration, monitor, nodeThreadConnectionCleanUp, processEvent, recordFatalError, reset, stop, submitNodeMonitorIfAbsent, throwIfFatalError, updateHostsAvailability, updateTopologyCache, waitForTopologyUpdate, wakeUpMonitoringLoopgetLastActivityTimestampNanos, getState, run, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLastActivityTimestampNanos, getState, startprotected final java.util.Map<java.lang.String,HostSpec> instanceTemplatesByRegion
protected final GlobalAuroraTopologyUtils topologyUtils
protected final @Nullable java.util.Set<java.lang.String> accessibleRegions
protected final RdsUtils rdsUtils
public GlobalAuroraTopologyMonitor(FullServicesContainer servicesContainer, GlobalAuroraTopologyUtils topologyUtils, java.lang.String clusterId, HostSpec initialHostSpec, java.util.Properties properties, HostSpec instanceTemplate, long refreshRateNano, long highRefreshRateNano, java.util.Map<java.lang.String,HostSpec> instanceTemplatesByRegion)
protected HostSpec getInstanceTemplate(@Nullable java.lang.String instanceId, java.sql.Connection connection) throws java.sql.SQLException
getInstanceTemplate in class ClusterTopologyMonitorImpljava.sql.SQLExceptionprotected @Nullable java.util.List<HostSpec> queryForTopology(java.sql.Connection connection) throws java.sql.SQLException
queryForTopology in class ClusterTopologyMonitorImpljava.sql.SQLExceptionprotected @Nullable java.util.List<HostSpec> openAnyConnectionAndUpdateTopology()
openAnyConnectionAndUpdateTopology in class ClusterTopologyMonitorImplprotected java.util.List<HostSpec> filterHostsForNodeMonitoring(java.util.List<HostSpec> hosts)
ClusterTopologyMonitorImplfilterHostsForNodeMonitoring in class ClusterTopologyMonitorImplhosts - the full list of hosts from the topologyprotected MonitoringConnectionHandler createConnectionHandler()
createConnectionHandler in class ClusterTopologyMonitorImplprotected long getStableTopologiesDurationNano()
getStableTopologiesDurationNano in class ClusterTopologyMonitorImplpublic java.util.List<Pair<java.lang.String,java.lang.Object>> getSnapshotState()
getSnapshotState in interface StateSnapshotProvidergetSnapshotState in class ClusterTopologyMonitorImpl