public class KvQueryServer extends NetworkServer<KvRequest,KvResponse> implements QueryServer
QueryServer.| Constructor and Description |
|---|
KvQueryServer(int serverId,
int numServers,
String bindAddress,
Iterator<Integer> bindPortIterator,
Integer numEventLoopThreads,
Integer numQueryThreads,
TableQuery lookup,
ServiceRequestStats stats) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getServerAddress()
Returns the address of this server.
|
AbstractServerHandler<KvRequest,KvResponse> |
initializeHandler()
Returns the
handler to be used for serving the incoming
requests. |
void |
shutdown()
Shuts down the server and all related thread pools.
|
void |
start()
Starts the server by binding to the configured bind address (blocking).
|
getQueryExecutor, getServerName, isEventGroupShutdown, shutdownServerpublic KvQueryServer(int serverId,
int numServers,
String bindAddress,
Iterator<Integer> bindPortIterator,
Integer numEventLoopThreads,
Integer numQueryThreads,
TableQuery lookup,
ServiceRequestStats stats)
public AbstractServerHandler<KvRequest,KvResponse> initializeHandler()
NetworkServerhandler to be used for serving the incoming
requests.initializeHandler in class NetworkServer<KvRequest,KvResponse>public void start()
throws Throwable
NetworkServerstart in interface QueryServerstart in class NetworkServer<KvRequest,KvResponse>Throwablepublic InetSocketAddress getServerAddress()
NetworkServergetServerAddress in interface QueryServergetServerAddress in class NetworkServer<KvRequest,KvResponse>public void shutdown()
QueryServershutdown in interface QueryServerCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.