Class SupportedHdfsActiveSyncProvider

    • Constructor Summary

      Constructors 
      Constructor Description
      SupportedHdfsActiveSyncProvider​(java.net.URI uri, org.apache.hadoop.conf.Configuration conf, alluxio.underfs.UnderFileSystemConfiguration ufsConf)
      Constructor for supported Hdfs Active Sync Provider.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      alluxio.SyncInfo getActivitySyncInfo()
      Get Active SyncInfo from the sync provider.
      void pollEvent​(org.apache.hadoop.hdfs.DFSInotifyEventInputStream eventStream)
      Fetch and process events.
      boolean startPolling​(long txId)
      start polling thread.
      void startSync​(alluxio.AlluxioURI ufsUri)
      startSync on a ufs uri.
      boolean stopPolling()
      stop polling thread.
      void stopSync​(alluxio.AlluxioURI ufsUri)
      stop sync on a ufs uri.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SupportedHdfsActiveSyncProvider

        public SupportedHdfsActiveSyncProvider​(java.net.URI uri,
                                               org.apache.hadoop.conf.Configuration conf,
                                               alluxio.underfs.UnderFileSystemConfiguration ufsConf)
                                        throws java.io.IOException
        Constructor for supported Hdfs Active Sync Provider.
        Parameters:
        uri - the hdfs uri
        conf - the hdfs conf
        ufsConf - Alluxio UFS configuration
        Throws:
        java.io.IOException
    • Method Detail

      • startPolling

        public boolean startPolling​(long txId)
                             throws java.io.IOException
        Description copied from interface: HdfsActiveSyncProvider
        start polling thread.
        Specified by:
        startPolling in interface HdfsActiveSyncProvider
        Parameters:
        txId - transaction id to start monitoring
        Returns:
        true if polling thread started successfully
        Throws:
        java.io.IOException
      • startSync

        public void startSync​(alluxio.AlluxioURI ufsUri)
        startSync on a ufs uri.
        Specified by:
        startSync in interface HdfsActiveSyncProvider
        Parameters:
        ufsUri - the ufs uri to monitor for sync
      • stopSync

        public void stopSync​(alluxio.AlluxioURI ufsUri)
        stop sync on a ufs uri.
        Specified by:
        stopSync in interface HdfsActiveSyncProvider
        Parameters:
        ufsUri - the ufs uri to stop monitoring for sync
      • pollEvent

        public void pollEvent​(org.apache.hadoop.hdfs.DFSInotifyEventInputStream eventStream)
        Fetch and process events.
        Parameters:
        eventStream - event stream
      • getActivitySyncInfo

        public alluxio.SyncInfo getActivitySyncInfo()
        Description copied from interface: HdfsActiveSyncProvider
        Get Active SyncInfo from the sync provider.
        Specified by:
        getActivitySyncInfo in interface HdfsActiveSyncProvider
        Returns:
        SyncInfo a syncInfo containing information about what to sync and how to sync