org.ow2.petals.bc.filetransfer.service.consume
Class ExternalEventPoller

java.lang.Object
  extended by java.util.TimerTask
      extended by org.ow2.petals.bc.filetransfer.service.consume.ExternalEventPoller
All Implemented Interfaces:
java.lang.Runnable

public class ExternalEventPoller
extends java.util.TimerTask

Watch folder and create for each new file an ExternalEventProcessor thread

Author:
”Mathieu CARROLLE - mathieu.carrolle@petalslink.com”

Constructor Summary
ExternalEventPoller(ConsumeConfiguration configuration, FileTransferExternalListener consumeContext)
           
 
Method Summary
protected  ConsumeConfiguration getConfiguration()
           
protected  FileTransferExternalListener getConsumeContext()
           
protected  java.util.logging.Logger getLogger()
           
 void run()
           
 void startPolling()
          Start this poller
 void stopPolling()
          Cancel and purge this timer.
Shutdown all ExternalEventProcessor thread (wait the end of all current tasks and don't accept new Task)
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalEventPoller

public ExternalEventPoller(ConsumeConfiguration configuration,
                           FileTransferExternalListener consumeContext)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

startPolling

public void startPolling()
Start this poller


stopPolling

public void stopPolling()
Cancel and purge this timer.
Shutdown all ExternalEventProcessor thread (wait the end of all current tasks and don't accept new Task)


getConfiguration

protected ConsumeConfiguration getConfiguration()

getConsumeContext

protected FileTransferExternalListener getConsumeContext()

getLogger

protected java.util.logging.Logger getLogger()


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.