public final class DefaultAsyncPersistHandler extends java.lang.Object implements AsyncPersistHandler
AsyncPersistHandler.Factory| Constructor and Description |
|---|
DefaultAsyncPersistHandler(FileSystemMasterView view)
Constructs a new instance of
AsyncPersistHandler. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PersistFile> |
pollFilesToPersist(long workerId)
Polls the files to send to the given worker for persistence.
|
void |
scheduleAsyncPersistence(AlluxioURI path)
Schedules a file for async persistence.
|
public DefaultAsyncPersistHandler(FileSystemMasterView view)
AsyncPersistHandler.view - a view of FileSystemMasterpublic void scheduleAsyncPersistence(AlluxioURI path) throws AlluxioException, UnavailableException
AsyncPersistHandlerscheduleAsyncPersistence in interface AsyncPersistHandlerpath - the path to the fileAlluxioExceptionUnavailableExceptionpublic java.util.List<PersistFile> pollFilesToPersist(long workerId) throws FileDoesNotExistException, InvalidPathException, AccessControlException
mWorkerToAsyncPersistFiles.pollFilesToPersist in interface AsyncPersistHandlerworkerId - the worker idFileDoesNotExistException - if the file does not existInvalidPathException - if the path is invalidAccessControlException - if permission checking failsCopyright © 2019. All Rights Reserved.