use of org.apache.accumulo.server.client.ClientServiceHandler in project accumulo by apache.
the class TServerUtilsTest method startServer.
private ServerAddress startServer() throws Exception {
AccumuloServerContext ctx = new AccumuloServerContext(instance, factory);
ClientServiceHandler clientHandler = new ClientServiceHandler(ctx, null, null);
Iface rpcProxy = RpcWrapper.service(clientHandler);
Processor<Iface> processor = new Processor<>(rpcProxy);
// "localhost" explicitly to make sure we can always bind to that interface (avoids DNS misconfiguration)
String hostname = "localhost";
return TServerUtils.startServer(ctx, hostname, Property.TSERV_CLIENTPORT, processor, "TServerUtilsTest", "TServerUtilsTestThread", Property.TSERV_PORTSEARCH, Property.TSERV_MINTHREADS, Property.TSERV_THREADCHECK, Property.GENERAL_MAX_MESSAGE_SIZE);
}
Aggregations