Constructor and Description |
---|
GrpcMessagingServer(AlluxioConfiguration conf,
UserState userState,
ExecutorService executor,
GrpcMessagingProxy proxy)
Creates a transport server that can be used to accept connections from remote clients.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
close()
Closes the connection to the server if exists.
|
CompletableFuture<Void> |
listen(InetSocketAddress address,
java.util.function.Consumer<GrpcMessagingConnection> listener)
Listens to the given address.
|
public GrpcMessagingServer(AlluxioConfiguration conf, UserState userState, ExecutorService executor, GrpcMessagingProxy proxy)
conf
- Alluxio configurationuserState
- authentication userexecutor
- transport executorproxy
- external proxy configurationpublic CompletableFuture<Void> listen(InetSocketAddress address, java.util.function.Consumer<GrpcMessagingConnection> listener)
address
- the address to connect tolistener
- listener for new connectionspublic CompletableFuture<Void> close()
Copyright © 2023. All Rights Reserved.