public interface HostMonitorService
| Modifier and Type | Method and Description |
|---|---|
void |
releaseResources() |
HostMonitorConnectionContext |
startMonitoring(java.sql.Connection connectionToAbort,
HostSpec hostSpec,
java.util.Properties properties,
int failureDetectionTimeMillis,
int failureDetectionIntervalMillis,
int failureDetectionCount) |
void |
stopMonitoring(HostMonitorConnectionContext context,
java.sql.Connection connectionToAbort)
Stop monitoring for a connection represented by the given
HostMonitorConnectionContext. |
HostMonitorConnectionContext startMonitoring(java.sql.Connection connectionToAbort, HostSpec hostSpec, java.util.Properties properties, int failureDetectionTimeMillis, int failureDetectionIntervalMillis, int failureDetectionCount) throws java.sql.SQLException
java.sql.SQLExceptionvoid stopMonitoring(HostMonitorConnectionContext context, java.sql.Connection connectionToAbort)
HostMonitorConnectionContext.
Removes the context from the HostMonitorImpl.context - The HostMonitorConnectionContext representing a connection.connectionToAbort - A connection to abort.void releaseResources()