Search in sources :

Example 1 with ClientServiceHandler

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);
}
Also used : ClientServiceHandler(org.apache.accumulo.server.client.ClientServiceHandler) Iface(org.apache.accumulo.core.client.impl.thrift.ClientService.Iface) AccumuloServerContext(org.apache.accumulo.server.AccumuloServerContext) Processor(org.apache.accumulo.core.client.impl.thrift.ClientService.Processor)

Aggregations

Iface (org.apache.accumulo.core.client.impl.thrift.ClientService.Iface)1 Processor (org.apache.accumulo.core.client.impl.thrift.ClientService.Processor)1 AccumuloServerContext (org.apache.accumulo.server.AccumuloServerContext)1 ClientServiceHandler (org.apache.accumulo.server.client.ClientServiceHandler)1