@ThreadSafe public final class KeyValueMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>
mAddress, mClosed, mConnected, mProtocol, mServiceVersion
Constructor and Description |
---|
KeyValueMasterClient(MasterClientConfig conf)
Creates a new key-value master client.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
void |
completePartition(AlluxioURI path,
PartitionInfo info)
Marks a partition complete and adds it to an incomplete key-value store.
|
void |
completeStore(AlluxioURI path)
Marks a key-value store complete.
|
void |
createStore(AlluxioURI path)
Creates a new key-value store.
|
void |
deleteStore(AlluxioURI path)
Deletes a completed key-value store.
|
protected AlluxioService.Client |
getClient() |
List<PartitionInfo> |
getPartitionInfo(AlluxioURI path)
Gets a list of partitions of a given key-value store.
|
protected String |
getServiceName() |
protected long |
getServiceVersion() |
void |
renameStore(AlluxioURI oldPath,
AlluxioURI newPath)
Renames a completed key-value store.
|
getAddress
afterDisconnect, beforeDisconnect, checkVersion, close, connect, disconnect, isConnected, retryRPC, retryRPC
public KeyValueMasterClient(MasterClientConfig conf)
conf
- master client configurationprotected AlluxioService.Client getClient()
getClient
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 void completePartition(AlluxioURI path, PartitionInfo info) throws IOException
path
- URI of the key-value storeinfo
- information of this completed partitionIOException
public void completeStore(AlluxioURI path) throws IOException
path
- URI of the key-value storeIOException
public void createStore(AlluxioURI path) throws IOException
path
- URI of the key-value storeIOException
public List<PartitionInfo> getPartitionInfo(AlluxioURI path) throws IOException
path
- URI of the key-value storeIOException
public void deleteStore(AlluxioURI path) throws IOException
path
- URI of the storeIOException
public void renameStore(AlluxioURI oldPath, AlluxioURI newPath) throws IOException
oldPath
- old URI of the storenewPath
- new URI of the storeIOException
Copyright © 2023. All Rights Reserved.