public interface KeyValueMaster extends Master
Modifier and Type | Method and Description |
---|---|
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 uri)
Deletes a completed key-value store.
|
List<PartitionInfo> |
getPartitionInfo(AlluxioURI path)
Gets a list of partitions of a given key-value store.
|
void |
mergeStore(AlluxioURI fromUri,
AlluxioURI toUri)
Merges one completed key-value store to another completed key-value store.
|
void |
renameStore(AlluxioURI oldUri,
AlluxioURI newUri)
Renames one completed key-value store.
|
createJournalContext
getName, processJournalEntry, resetState
getJournalEntryIterator
getDependencies, getName, getServices, start, stop
void completePartition(AlluxioURI path, PartitionInfo info) throws AccessControlException, FileDoesNotExistException, InvalidPathException, UnavailableException
path
- URI of the key-value storeinfo
- information of this completed partitionAccessControlException
- if permission checking failsFileDoesNotExistException
- if the key-value store URI does not existsInvalidPathException
- if the path is invalidUnavailableException
void completeStore(AlluxioURI path) throws FileDoesNotExistException, InvalidPathException, AccessControlException, UnavailableException
path
- URI of the key-value storeFileDoesNotExistException
- if the key-value store URI does not existsInvalidPathException
- if the path is not validAccessControlException
- if permission checking failsUnavailableException
void createStore(AlluxioURI path) throws FileAlreadyExistsException, InvalidPathException, AccessControlException, UnavailableException
path
- URI of the key-value storeFileAlreadyExistsException
- if a key-value store URI existsInvalidPathException
- if the given path is invalidAccessControlException
- if permission checking failsUnavailableException
void deleteStore(AlluxioURI uri) throws IOException, InvalidPathException, FileDoesNotExistException, AlluxioException, UnavailableException
uri
- AlluxioURI
to the storeInvalidPathException
- if the uri exists but is not a key-value storeFileDoesNotExistException
- if the uri does not existIOException
AlluxioException
UnavailableException
void renameStore(AlluxioURI oldUri, AlluxioURI newUri) throws IOException, AlluxioException, UnavailableException
oldUri
- the old AlluxioURI
to the storenewUri
- the AlluxioURI
to the storeIOException
AlluxioException
UnavailableException
void mergeStore(AlluxioURI fromUri, AlluxioURI toUri) throws IOException, FileDoesNotExistException, InvalidPathException, AlluxioException, UnavailableException
fromUri
- the AlluxioURI
to the store to be mergedtoUri
- the AlluxioURI
to the store to be merged toInvalidPathException
- if the uri exists but is not a key-value storeFileDoesNotExistException
- if the uri does not existIOException
AlluxioException
UnavailableException
List<PartitionInfo> getPartitionInfo(AlluxioURI path) throws FileDoesNotExistException, AccessControlException, InvalidPathException, UnavailableException
path
- URI of the key-value storeFileDoesNotExistException
- if the key-value store URI does not existsAccessControlException
- if permission checking failsInvalidPathException
- if the path is invalidUnavailableException
Copyright © 2023. All Rights Reserved.