public interface Client extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects with the remote.
|
void |
disconnect()
Closes the connection with the Alluxio remote and does the necessary cleanup.
|
InetSocketAddress |
getConfAddress() |
String |
getRemoteHostName() |
SocketAddress |
getRemoteSockAddress() |
boolean |
isClosed() |
boolean |
isConnected()
Returns the connected status of the client.
|
void connect() throws IOException
IOException
void disconnect()
SocketAddress getRemoteSockAddress() throws UnavailableException
SocketAddress
of the remoteUnavailableException
- if the primary address cannot be determinedString getRemoteHostName() throws UnavailableException
UnavailableException
- if the primary address cannot be determinedInetSocketAddress getConfAddress() throws UnavailableException
InetSocketAddress
of the configuration remoteUnavailableException
- if the primary address cannot be determinedboolean isConnected()
boolean isClosed()
Copyright © 2023. All Rights Reserved.