|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.test.TestConnectionPool
public class TestConnectionPool
| Constructor Summary | |
|---|---|
TestConnectionPool()
|
|
| Method Summary | ||
|---|---|---|
boolean |
addHost(Host host,
boolean refresh)
Add a host to the connection pool. |
|
|
executeWithFailover(Operation<TestClient,R> op,
RetryPolicy retry)
Execute an operation with failover within the context of the connection pool. |
|
java.util.List<HostConnectionPool<TestClient>> |
getActivePools()
|
|
HostConnectionPool<TestClient> |
getHostPool(Host host)
|
|
java.util.Collection<Host> |
getHosts()
|
|
Partitioner |
getPartitioner()
|
|
java.util.List<HostConnectionPool<TestClient>> |
getPools()
|
|
Topology<TestClient> |
getTopology()
|
|
boolean |
hasHost(Host host)
|
|
boolean |
isHostUp(Host host)
|
|
boolean |
removeHost(Host host,
boolean refresh)
Remove a host from the connection pool. |
|
void |
setHosts(java.util.Collection<Host> ring)
Set the complete set of hosts in the ring |
|
void |
shutdown()
Shut down the connection pool and terminate all existing connections |
|
void |
start()
Setup the connection pool and start any maintenance threads |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestConnectionPool()
| Method Detail |
|---|
public java.util.Collection<Host> getHosts()
public boolean addHost(Host host,
boolean refresh)
ConnectionPool
addHost in interface ConnectionPool<TestClient>
public boolean removeHost(Host host,
boolean refresh)
ConnectionPool
removeHost in interface ConnectionPool<TestClient>public void setHosts(java.util.Collection<Host> ring)
ConnectionPool
setHosts in interface ConnectionPool<TestClient>
public <R> OperationResult<R> executeWithFailover(Operation<TestClient,R> op,
RetryPolicy retry)
throws ConnectionException,
OperationException
ConnectionPool
executeWithFailover in interface ConnectionPool<TestClient>ConnectionException
OperationExceptionpublic void shutdown()
ConnectionPool
shutdown in interface ConnectionPool<TestClient>public void start()
ConnectionPool
start in interface ConnectionPool<TestClient>public boolean isHostUp(Host host)
isHostUp in interface ConnectionPool<TestClient>public boolean hasHost(Host host)
hasHost in interface ConnectionPool<TestClient>public HostConnectionPool<TestClient> getHostPool(Host host)
getHostPool in interface ConnectionPool<TestClient>public java.util.List<HostConnectionPool<TestClient>> getActivePools()
getActivePools in interface ConnectionPool<TestClient>public java.util.List<HostConnectionPool<TestClient>> getPools()
getPools in interface ConnectionPool<TestClient>public Topology<TestClient> getTopology()
getTopology in interface ConnectionPool<TestClient>public Partitioner getPartitioner()
getPartitioner in interface ConnectionPool<TestClient>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||