|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.socket.clientrequest.ClientRequestExecutorPool
public class ClientRequestExecutorPool
A pool of ClientRequestExecutor keyed off the
SocketDestination. This is a wrapper around KeyedResourcePool
that translates exceptions as well as providing some JMX access.
close().
| Constructor Summary | |
|---|---|
ClientRequestExecutorPool(int maxConnectionsPerNode,
int connectionTimeoutMs,
int soTimeoutMs,
int socketBufferSize)
|
|
ClientRequestExecutorPool(int selectors,
int maxConnectionsPerNode,
int connectionTimeoutMs,
int soTimeoutMs,
int socketBufferSize,
boolean socketKeepAlive)
|
|
| Method Summary | |
|---|---|
void |
checkin(SocketDestination destination,
ClientRequestExecutor clientRequestExecutor)
Check the socket back into the pool. |
ClientRequestExecutor |
checkout(SocketDestination destination)
Checkout a socket from the pool |
void |
close()
Close the socket pool |
void |
close(SocketDestination destination)
This closes the resources for a specific host, usually in response to an error in communicating with that host. |
SocketStore |
create(java.lang.String storeName,
java.lang.String hostName,
int port,
RequestFormatType requestFormatType,
RequestRoutingType requestRoutingType)
Creates a new SocketStore using the specified store name, remote server, format type and routing type. |
double |
getAvgWaitTimeMs()
|
ClientRequestExecutorFactory |
getFactory()
|
int |
getNumberOfActiveConnections()
|
int |
getNumberOfCheckedInConnections()
|
int |
getNumberSocketsCreated()
|
int |
getNumberSocketsDestroyed()
|
void |
setMonitoringInterval(int count)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientRequestExecutorPool(int selectors,
int maxConnectionsPerNode,
int connectionTimeoutMs,
int soTimeoutMs,
int socketBufferSize,
boolean socketKeepAlive)
public ClientRequestExecutorPool(int maxConnectionsPerNode,
int connectionTimeoutMs,
int soTimeoutMs,
int socketBufferSize)
| Method Detail |
|---|
public ClientRequestExecutorFactory getFactory()
public SocketStore create(java.lang.String storeName,
java.lang.String hostName,
int port,
RequestFormatType requestFormatType,
RequestRoutingType requestRoutingType)
SocketStoreFactory
create in interface SocketStoreFactorystoreName - Name of storehostName - Host name of remote Voldemort nodeport - Port on which hostName is listeningrequestFormatType - RequestFormatTyperequestRoutingType - RequestRoutingType
SocketStorepublic ClientRequestExecutor checkout(SocketDestination destination)
destination - The socket destination you want to connect to
public void checkin(SocketDestination destination,
ClientRequestExecutor clientRequestExecutor)
destination - The socket destination of the socketclientRequestExecutor - The request executor wrapperpublic void close(SocketDestination destination)
SocketStoreFactory
close in interface SocketStoreFactorydestination - SocketDestination representing the host name,
port, etc. for a remote hostpublic void close()
close in interface SocketStoreFactorypublic int getNumberSocketsCreated()
public int getNumberSocketsDestroyed()
public int getNumberOfActiveConnections()
public int getNumberOfCheckedInConnections()
public double getAvgWaitTimeMs()
public void setMonitoringInterval(int count)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||