Class SyncHandler

  • All Implemented Interfaces:
    org.apache.commons.jci.monitor.FilesystemAlterationListener

    public class SyncHandler
    extends Object
    implements org.apache.commons.jci.monitor.FilesystemAlterationListener
    SyncHandler...
    • Constructor Detail

      • SyncHandler

        public SyncHandler​(File fileRoot)
    • Method Detail

      • covers

        public boolean covers​(String path)
      • contains

        public boolean contains​(String path)
      • prepareForSync

        public void prepareForSync()
      • getFileForJcrPath

        public File getFileForJcrPath​(String path)
      • getJcrPathForFile

        public String getJcrPathForFile​(File file)
      • onFileCreate

        public void onFileCreate​(File file)
        Specified by:
        onFileCreate in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
      • onFileChange

        public void onFileChange​(File file)
        Specified by:
        onFileChange in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
      • onFileDelete

        public void onFileDelete​(File file)
        Specified by:
        onFileDelete in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
      • onDirectoryCreate

        public void onDirectoryCreate​(File file)
        Specified by:
        onDirectoryCreate in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
      • onDirectoryDelete

        public void onDirectoryDelete​(File file)
        Specified by:
        onDirectoryDelete in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
      • onStart

        public void onStart​(org.apache.commons.jci.monitor.FilesystemAlterationObserver filesystemAlterationObserver)
        Specified by:
        onStart in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
      • onStop

        public void onStop​(org.apache.commons.jci.monitor.FilesystemAlterationObserver filesystemAlterationObserver)
        Specified by:
        onStop in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
      • onDirectoryChange

        public void onDirectoryChange​(File file)
        Specified by:
        onDirectoryChange in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
      • registerPendingJcrChange

        public void registerPendingJcrChange​(String path)