Package alluxio.underfs.hdfs
Interface HdfsActiveSyncProvider
-
- All Known Implementing Classes:
NoopHdfsActiveSyncProvider,SupportedHdfsActiveSyncProvider
public interface HdfsActiveSyncProviderInterface for providing HDFS ActiveSync.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description alluxio.SyncInfogetActivitySyncInfo()Get Active SyncInfo from the sync provider.booleanstartPolling(long txId)start polling thread.voidstartSync(alluxio.AlluxioURI ufsUri)start syncing on a ufs uri.booleanstopPolling()stop polling thread.voidstopSync(alluxio.AlluxioURI ufsUri)stop syncing on a ufs uri.
-
-
-
Method Detail
-
getActivitySyncInfo
alluxio.SyncInfo getActivitySyncInfo()
Get Active SyncInfo from the sync provider.- Returns:
- SyncInfo a syncInfo containing information about what to sync and how to sync
-
startPolling
boolean startPolling(long txId) throws java.io.IOExceptionstart polling thread.- Parameters:
txId- transaction id to start monitoring- Returns:
- true if polling thread started successfully
- Throws:
java.io.IOException
-
stopPolling
boolean stopPolling()
stop polling thread.- Returns:
- true if polling thread stopped successfully
-
startSync
void startSync(alluxio.AlluxioURI ufsUri)
start syncing on a ufs uri.- Parameters:
ufsUri- the ufs uri to monitor
-
stopSync
void stopSync(alluxio.AlluxioURI ufsUri)
stop syncing on a ufs uri.- Parameters:
ufsUri- the ufs uri to stop monitoring
-
-