use of alluxio.hub.manager.rpc.service.ManagerAgentService in project alluxio by Alluxio.
the class AgentProcessContextTest method before.
@Before
public void before() throws Exception {
mContext = getTestManagerContext();
mServerName = InProcessServerBuilder.generateName();
mServer = InProcessServerBuilder.forName(mServerName).directExecutor().addService(new ManagerAgentService(mContext)).build();
mServer.start();
mChannel = InProcessChannelBuilder.forName(mServerName).directExecutor().build();
mClient = new InProcessRpcClient<>(InetSocketAddress.createUnresolved(mServerName, 0), ManagerAgentServiceGrpc::newBlockingStub, (addr) -> InProcessChannelBuilder.forName(mServerName).directExecutor().build());
}
Aggregations