org.apache.geronimo.connector.work
Class GeronimoWorkManager
java.lang.Object
org.apache.geronimo.connector.work.GeronimoWorkManager
- All Implemented Interfaces:
- WorkManager
public class GeronimoWorkManager
- extends Object
- implements 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.
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,
org.apache.geronimo.transaction.manager.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(Work work)
throws WorkException
- Specified by:
doWork
in interface WorkManager
- Throws:
WorkException
doWork
public void doWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
- Specified by:
doWork
in interface WorkManager
- Throws:
WorkException
startWork
public long startWork(Work work)
throws WorkException
- Specified by:
startWork
in interface WorkManager
- Throws:
WorkException
startWork
public long startWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
- Specified by:
startWork
in interface WorkManager
- Throws:
WorkException
scheduleWork
public void scheduleWork(Work work)
throws WorkException
- Specified by:
scheduleWork
in interface WorkManager
- Throws:
WorkException
scheduleWork
public void scheduleWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
- Specified by:
scheduleWork
in interface WorkManager
- Throws:
WorkException
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.