|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionPoolMonitor
Monitoring interface to receive notification of pool events. A concrete monitor will make event stats available to a monitoring application and may also log events to a log file.
| Method Summary | |
|---|---|
long |
getBadRequestCount()
|
long |
getConnectionBorrowedCount()
|
long |
getConnectionClosedCount()
|
long |
getConnectionCreatedCount()
|
long |
getConnectionCreateFailedCount()
|
long |
getConnectionReturnedCount()
|
long |
getFailoverCount()
|
long |
getHostActiveCount()
|
long |
getHostAddedCount()
Return the number of times a host was added to the pool. |
long |
getHostCount()
|
long |
getHostDownCount()
|
long |
getHostRemovedCount()
Return the number of times any host was removed to the pool. |
java.util.Map<Host,HostStats> |
getHostStats()
|
long |
getInterruptedCount()
|
long |
getNoHostCount()
|
long |
getOperationFailureCount()
|
long |
getOperationSuccessCount()
|
long |
getOperationTimeoutCount()
Timeout waiting for a response from the cluster |
long |
getPoolExhaustedTimeoutCount()
Timeout trying to get a connection from the pool |
long |
getSocketTimeoutCount()
|
long |
getTransportErrorCount()
|
long |
getUnknownErrorCount()
|
void |
incConnectionBorrowed(Host host,
long delay)
Incremented for each connection borrowed |
void |
incConnectionClosed(Host host,
java.lang.Exception reason)
Closed a connection |
void |
incConnectionCreated(Host host)
Created a connection successfully |
void |
incConnectionCreateFailed(Host host,
java.lang.Exception reason)
Attempt to create a connection failed |
void |
incConnectionReturned(Host host)
Incremented for each connection returned. |
void |
incFailover(Host host,
java.lang.Exception reason)
An operation failed but the connection pool will attempt to fail over to another host/connection. |
void |
incOperationFailure(Host host,
java.lang.Exception reason)
Errors trying to execute an operation. |
void |
incOperationSuccess(Host host,
long latency)
Succeeded in executing an operation |
long |
notFoundCount()
|
void |
onHostAdded(Host host,
HostConnectionPool<?> pool)
A host was added and given the associated pool. |
void |
onHostDown(Host host,
java.lang.Exception reason)
A host was identified as downed. |
void |
onHostReactivated(Host host,
HostConnectionPool<?> pool)
A host was reactivated after being marked down |
void |
onHostRemoved(Host host)
A host was removed from the pool. |
| Method Detail |
|---|
void incOperationFailure(Host host,
java.lang.Exception reason)
reason - host - long getOperationFailureCount()
void incFailover(Host host,
java.lang.Exception reason)
long getFailoverCount()
void incOperationSuccess(Host host,
long latency)
host - latency - long getOperationSuccessCount()
void incConnectionCreated(Host host)
long getConnectionCreatedCount()
void incConnectionClosed(Host host,
java.lang.Exception reason)
reason - TODO: Make the host available to thislong getConnectionClosedCount()
void incConnectionCreateFailed(Host host,
java.lang.Exception reason)
host - reason - long getConnectionCreateFailedCount()
void incConnectionBorrowed(Host host,
long delay)
host - Host from which the connection was borroweddelay - Time spent in the connection pool borrowing the connectionlong getConnectionBorrowedCount()
void incConnectionReturned(Host host)
host - Host to which connection is returnedlong getConnectionReturnedCount()
long getPoolExhaustedTimeoutCount()
long getOperationTimeoutCount()
long getSocketTimeoutCount()
long getUnknownErrorCount()
long getBadRequestCount()
long getNoHostCount()
long notFoundCount()
long getInterruptedCount()
long getTransportErrorCount()
long getHostCount()
long getHostAddedCount()
long getHostRemovedCount()
long getHostDownCount()
long getHostActiveCount()
void onHostAdded(Host host,
HostConnectionPool<?> pool)
host - pool - void onHostRemoved(Host host)
host -
void onHostDown(Host host,
java.lang.Exception reason)
host - reason - Exception that caused the host to be identified as down
void onHostReactivated(Host host,
HostConnectionPool<?> pool)
host - pool - java.util.Map<Host,HostStats> getHostStats()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||