com.stc.connector.fileadapter.eway
Class FilePollerWork
java.lang.Object
com.stc.connector.fileadapter.eway.FilePollerWork
- All Implemented Interfaces:
- com.stc.connector.management.jca.system.mbeans.LifeCycle, java.lang.Runnable, javax.resource.spi.work.Work
public class FilePollerWork
- extends java.lang.Object
- implements javax.resource.spi.work.Work, com.stc.connector.management.jca.system.mbeans.LifeCycle
Inbound Worker for File Polling
Constructor Summary |
FilePollerWork(FileEndpoint aEndpoint,
com.stc.connector.management.util.ObjectReference aMonitor,
java.lang.reflect.Method aEndpointMethod,
com.stc.connector.framework.eway.MessageResourceManager aResourceManager)
Creates a new instance of File Poller |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePollerWork
public FilePollerWork(FileEndpoint aEndpoint,
com.stc.connector.management.util.ObjectReference aMonitor,
java.lang.reflect.Method aEndpointMethod,
com.stc.connector.framework.eway.MessageResourceManager aResourceManager)
throws java.lang.IllegalArgumentException
- Creates a new instance of File Poller
- Parameters:
aEndpoint
- File ConfigurationaMonitor
- Monitor that is watching over this componentaEndpointMethod
- aResourceManager
-
- Throws:
java.lang.IllegalArgumentException
- If any of the parameters are null
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
- See Also:
Runnable.run()
renameFile
public void renameFile(java.io.File lFile)
throws java.lang.Exception
- Throws:
java.lang.Exception
release
public void release()
- Specified by:
release
in interface javax.resource.spi.work.Work
- See Also:
Work.release()
start
public void start()
- Specified by:
start
in interface com.stc.connector.management.jca.system.mbeans.LifeCycle
- See Also:
LifeCycle.start()
stop
public void stop()
- Specified by:
stop
in interface com.stc.connector.management.jca.system.mbeans.LifeCycle
- See Also:
LifeCycle.stop()
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface com.stc.connector.management.jca.system.mbeans.LifeCycle
- See Also:
LifeCycle.isStarted()
Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.