public class

Slf4jConnectionPoolMonitorImpl

extends CountingConnectionPoolMonitor
java.lang.Object
   ↳ com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor
     ↳ com.netflix.astyanax.connectionpool.impl.Slf4jConnectionPoolMonitorImpl

Summary

Public Constructors
Slf4jConnectionPoolMonitorImpl()
Public Methods
void incConnectionClosed(Host host, Exception reason)
Closed a connection
void incConnectionCreateFailed(Host host, Exception reason)
Attempt to create a connection failed
void incFailover(Host host, Exception reason)
An operation failed by the connection pool will attempt to fail over to another host/connection.
void incOperationFailure(Host host, Exception reason)
Errors trying to execute an operation
void onHostAdded(Host host, HostConnectionPool<?> pool)
A host was added and given the associated pool.
void onHostDown(Host host, 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.
[Expand]
Inherited Methods
From class com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor
From class java.lang.Object
From interface com.netflix.astyanax.connectionpool.ConnectionPoolMonitor

Public Constructors

public Slf4jConnectionPoolMonitorImpl ()

Public Methods

public void incConnectionClosed (Host host, Exception reason)

Closed a connection

Parameters
reason TODO: Make the host available to this

public void incConnectionCreateFailed (Host host, Exception reason)

Attempt to create a connection failed

public void incFailover (Host host, Exception reason)

An operation failed by the connection pool will attempt to fail over to another host/connection.

public void incOperationFailure (Host host, Exception reason)

Errors trying to execute an operation

public void onHostAdded (Host host, HostConnectionPool<?> pool)

A host was added and given the associated pool. The pool is immutable and can be used to get info about the number of open connections

public void onHostDown (Host host, Exception reason)

A host was identified as downed.

Parameters
reason Exception that caused the host to be identified as down

public void onHostReactivated (Host host, HostConnectionPool<?> pool)

A host was reactivated after being marked down

public void onHostRemoved (Host host)

A host was removed from the pool. This is usually called when a downed host is removed from the ring.