Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for File API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Method Summary
`boolean` | `isStarted()`
`void` | `release()`
`void` | `renameFile(java.io.File lFile)`
`void` | `run()`
`void` | `start()`
`void` | `stop()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### 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 Configuration
    `aMonitor` - Monitor that is watching over this component
    `aEndpointMethod` -
    `aResourceManager` -
  Throws:
    `java.lang.IllegalArgumentException` - If any of the parameters are null

Method Detail

### 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()`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for File API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.