@NotThreadSafe public final class GrpcDataServer extends Object implements DataServer
DataServer.Factory
Constructor and Description |
---|
GrpcDataServer(String hostName,
SocketAddress bindAddress,
WorkerProcess workerProcess)
Creates a new instance of
GrpcDataServer . |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination()
Waits for server to terminate.
|
void |
close() |
SocketAddress |
getBindAddress()
Gets the actual bind socket address.
|
boolean |
isClosed()
Checks if the
DataServer is closed. |
public GrpcDataServer(String hostName, SocketAddress bindAddress, WorkerProcess workerProcess)
GrpcDataServer
.hostName
- the server host namebindAddress
- the server bind addressworkerProcess
- the Alluxio worker processpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public SocketAddress getBindAddress()
DataServer
InetSocketAddress
or a
DomainSocketAddress
.getBindAddress
in interface DataServer
public boolean isClosed()
DataServer
DataServer
is closed.isClosed
in interface DataServer
DataServer
is closed, false otherwisepublic void awaitTermination()
DataServer
awaitTermination
in interface DataServer
Copyright © 2023. All Rights Reserved.