@ThreadSafe public final class FileSystemMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>mAddress, mChannel, mClosed, mConnected, mContext, mServiceVersion, mVersionService| Constructor and Description |
|---|
FileSystemMasterClient(MasterClientContext conf)
Creates an instance of
FileSystemMasterClient. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
FileInfo |
getFileInfo(long fileId) |
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
UfsInfo |
getUfsInfo(long mountId) |
getAddress, getConfAddressafterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC, retryRPCpublic FileSystemMasterClient(MasterClientContext conf)
FileSystemMasterClient.conf - master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType in class AbstractClientprotected java.lang.String getServiceName()
getServiceName in class AbstractClientprotected long getServiceVersion()
getServiceVersion in class AbstractClientprotected void afterConnect()
throws java.io.IOException
afterConnect in class AbstractClientjava.io.IOExceptionpublic FileInfo getFileInfo(long fileId) throws java.io.IOException
fileId - the id of the file for which to get the FileInfojava.io.IOExceptionpublic UfsInfo getUfsInfo(long mountId) throws java.io.IOException
mountId - the id of the mountjava.io.IOException - if an I/O error occursCopyright © 2022. All Rights Reserved.