it.geosolutions.filesystemmonitor.neutral.monitorpolling
Class GBFileSystemMonitor

java.lang.Object
  extended by it.geosolutions.filesystemmonitor.neutral.monitorpolling.GBFileSystemMonitor
All Implemented Interfaces:
FileSystemMonitor

public class GBFileSystemMonitor
extends java.lang.Object
implements FileSystemMonitor


Constructor Summary
GBFileSystemMonitor(java.lang.String path, java.lang.String wildcard, FileSystemEventType type, java.lang.String pollingInterval, boolean lockInputFiles, long maxLockingWait)
           
 
Method Summary
 void addListener(FileSystemListener fileListener)
           
 void dispose()
           
 java.io.File getFile()
           
 java.lang.String getWildCard()
           
 boolean isPaused()
           
 boolean isRunning()
           
 void pause()
           
 void removeListener(FileSystemListener fileListener)
           
 void reset()
          Deprecated. not implemented
 void start()
          Start the FSM job scan
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GBFileSystemMonitor

public GBFileSystemMonitor(java.lang.String path,
                           java.lang.String wildcard,
                           FileSystemEventType type,
                           java.lang.String pollingInterval,
                           boolean lockInputFiles,
                           long maxLockingWait)
                    throws org.quartz.SchedulerException,
                           java.lang.NullPointerException
Throws:
org.quartz.SchedulerException
java.lang.NullPointerException
Method Detail

start

public void start()
Start the FSM job scan

Specified by:
start in interface FileSystemMonitor

stop

public void stop()
Specified by:
stop in interface FileSystemMonitor

pause

public void pause()
Specified by:
pause in interface FileSystemMonitor

reset

public void reset()
Deprecated. not implemented

TODO: check: no sense to remove and re-add with the same trigger so no operation is performed.

Specified by:
reset in interface FileSystemMonitor
See Also:
getScheduler().rescheduleJob(triggerName, jobGroup,trigger);

isRunning

public boolean isRunning()
Specified by:
isRunning in interface FileSystemMonitor

isPaused

public boolean isPaused()
Specified by:
isPaused in interface FileSystemMonitor

dispose

public void dispose()
Specified by:
dispose in interface FileSystemMonitor

getFile

public java.io.File getFile()
Specified by:
getFile in interface FileSystemMonitor

getWildCard

public java.lang.String getWildCard()
Specified by:
getWildCard in interface FileSystemMonitor

addListener

public void addListener(FileSystemListener fileListener)
Specified by:
addListener in interface FileSystemMonitor

removeListener

public void removeListener(FileSystemListener fileListener)
Specified by:
removeListener in interface FileSystemMonitor


Copyright © 2006-2012 GeoSolutions. All Rights Reserved.