it.geosolutions.filesystemmonitor.neutral.monitorpolling
Class GBEventNotifier

java.lang.Object
  extended by it.geosolutions.filesystemmonitor.neutral.monitorpolling.GBEventNotifier
All Implemented Interfaces:
java.lang.Runnable

public class GBEventNotifier
extends java.lang.Object
implements java.lang.Runnable

Author:
(v1) Simone Giannecchini, (v2) Carlo Cancellieri - carlo.cancellieri@geo-solutions.it

Field Summary
static java.util.concurrent.ExecutorService threadPool
           
 
Constructor Summary
GBEventNotifier(javax.swing.event.EventListenerList list, FileSystemEventType type)
          Default Constructor
 
Method Summary
 boolean isStopped()
          used to check the status of this event consumer if this method return true thread is stopped and
protected  void notifyEvent(java.io.File file, FileSystemEventType type)
          /** Use this method to add events to this consumer the event will be filtered using the FileSystemEventType specified into the EventGeneratorConfiguration.
 void run()
          Never call this method manually
 void start()
          used to start the consumer
 void stop()
          used to stop the event consumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadPool

public static final java.util.concurrent.ExecutorService threadPool
Constructor Detail

GBEventNotifier

public GBEventNotifier(javax.swing.event.EventListenerList list,
                       FileSystemEventType type)
Default Constructor

Method Detail

isStopped

public boolean isStopped()
used to check the status of this event consumer if this method return true thread is stopped and

Returns:

start

public void start()
used to start the consumer


stop

public void stop()
used to stop the event consumer


notifyEvent

protected void notifyEvent(java.io.File file,
                           FileSystemEventType type)
/** Use this method to add events to this consumer the event will be filtered using the FileSystemEventType specified into the EventGeneratorConfiguration.

Parameters:
file -
type -

run

public void run()
Never call this method manually

Specified by:
run in interface java.lang.Runnable


Copyright © 2006-2012 GeoSolutions. All Rights Reserved.