|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SocketStoreFactory
SocketStoreFactory manages the creation of SocketStore instances.
Under the covers there are often shared resources (socket pools, etc.) that
are initialized (and destroyed) in a single section of code rather than
distributed over multiple methods/classes/packages.
| Method Summary | |
|---|---|
void |
close()
Closes the entire factory, which means that any shared resources used by socket store implementations will be closed as well. |
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. |
| Method Detail |
|---|
SocketStore create(java.lang.String storeName,
java.lang.String hostName,
int port,
RequestFormatType requestFormatType,
RequestRoutingType requestRoutingType)
storeName - Name of storehostName - Host name of remote Voldemort nodeport - Port on which hostName is listeningrequestFormatType - RequestFormatTyperequestRoutingType - RequestRoutingType
SocketStorevoid close()
SocketStore instances first, then close the
socket store factory.
void close(SocketDestination destination)
destination - SocketDestination representing the host name,
port, etc. for a remote host
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||