org.ow2.petals.bc.filetransfer.service.consume
Class ExternalEventPoller
java.lang.Object
java.util.TimerTask
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”
| 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 |
ExternalEventPoller
public ExternalEventPoller(ConsumeConfiguration configuration,
FileTransferExternalListener consumeContext)
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.