@ThreadSafe public final class FileSystemMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>
mChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService
Constructor and Description |
---|
FileSystemMasterClient(MasterClientContext conf)
Creates an instance of
FileSystemMasterClient . |
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
FileInfo |
getFileInfo(long fileId) |
protected ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
UfsInfo |
getUfsInfo(long mountId) |
afterDisconnect, beforeConnect, getConfAddress, queryGrpcServerAddress
beforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPC
public FileSystemMasterClient(MasterClientContext conf)
FileSystemMasterClient
.conf
- master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType
in class AbstractClient
protected String getServiceName()
getServiceName
in class AbstractClient
protected long getServiceVersion()
getServiceVersion
in class AbstractClient
protected void afterConnect() throws IOException
AbstractClient
afterConnect
in class AbstractClient
IOException
public FileInfo getFileInfo(long fileId) throws IOException
fileId
- the id of the file for which to get the FileInfo
IOException
public UfsInfo getUfsInfo(long mountId) throws IOException
mountId
- the id of the mountIOException
- if an I/O error occursCopyright © 2023. All Rights Reserved.