org.apache.geronimo.connector.work
Class GeronimoWorkManager
java.lang.Object
org.apache.geronimo.connector.work.GeronimoWorkManager
- All Implemented Interfaces:
- javax.resource.spi.work.WorkManager
public class GeronimoWorkManager
- extends Object
- implements javax.resource.spi.work.WorkManager
WorkManager implementation which uses under the cover three WorkExecutorPool
- one for each synchronization policy - in order to dispatch the submitted
Work instances.
A WorkManager is a component of the JCA specifications, which allows a
Resource Adapter to submit tasks to an Application Server for execution.
Fields inherited from interface javax.resource.spi.work.WorkManager |
IMMEDIATE, INDEFINITE, UNKNOWN |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeronimoWorkManager
public GeronimoWorkManager()
- Create a WorkManager.
GeronimoWorkManager
public GeronimoWorkManager(Executor sync,
Executor start,
Executor sched,
XAWork xaWork)
doStart
public void doStart()
throws Exception
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Throws:
Exception
doFail
public void doFail()
getSyncWorkExecutorPool
public Executor getSyncWorkExecutorPool()
getStartWorkExecutorPool
public Executor getStartWorkExecutorPool()
getScheduledWorkExecutorPool
public Executor getScheduledWorkExecutorPool()
doWork
public void doWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
doWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
doWork
public void doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
doWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
startWork
public long startWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
startWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
startWork
public long startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
startWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
scheduleWork
public void scheduleWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
scheduleWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
scheduleWork
public void scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
scheduleWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
Copyright © 2012 Apache Software Foundation. All Rights Reserved.