public class CopycatGrpcServer extends Object implements io.atomix.catalyst.transport.Server
Server
implementation that uses Alluxio gRPC.
Copycat guarantees each server will be used for listening only one address and won't be
recycled. It also guarantees that active listen future will be completed before calling close.Constructor and Description |
---|
CopycatGrpcServer(AlluxioConfiguration conf,
UserState userState,
ExecutorService executor,
CopycatGrpcProxy proxy)
Creates copycat transport server that can be used to accept connections from remote copycat
clients.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
close() |
CompletableFuture<Void> |
listen(io.atomix.catalyst.transport.Address address,
java.util.function.Consumer<io.atomix.catalyst.transport.Connection> listener) |
public CopycatGrpcServer(AlluxioConfiguration conf, UserState userState, ExecutorService executor, CopycatGrpcProxy proxy)
conf
- Alluxio configurationuserState
- authentication userexecutor
- transport executorproxy
- external proxy configurationpublic CompletableFuture<Void> listen(io.atomix.catalyst.transport.Address address, java.util.function.Consumer<io.atomix.catalyst.transport.Connection> listener)
listen
in interface io.atomix.catalyst.transport.Server
public CompletableFuture<Void> close()
close
in interface io.atomix.catalyst.transport.Server
Copyright © 2023. All Rights Reserved.