@ThreadSafe public class FileSystemMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>
mAlwaysEnableTLS, mChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService
Constructor and Description |
---|
FileSystemMasterClient(MasterClientContext conf)
Creates a 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) |
long |
getMountId(String ufsUri)
Reverse resolve a ufs uri and get mount id.
|
Set<Long> |
getPinList() |
protected ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
UfsInfo |
getUfsInfo(long mountId) |
afterDisconnect, beforeConnect, getConfAddress, queryGrpcServerAddress
beforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, createChannel, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPC
@Inject 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 Set<Long> getPinList() throws IOException
IOException
public UfsInfo getUfsInfo(long mountId) throws IOException
mountId
- the id of the mountIOException
- if an I/O error occurspublic long getMountId(String ufsUri) throws IOException
ufsUri
- the ufs uriAlluxioStatusException
- if any error occursIOException
Copyright © 2023. All Rights Reserved.