
public class WorkManagerImpl extends Object implements org.jboss.jca.core.api.workmanager.WorkManager
| Constructor and Description |
|---|
WorkManagerImpl()
Constructor - by default the WorkManager is running in spec-compliant mode
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelShutdown()
Cancel shutdown
|
org.jboss.jca.core.api.workmanager.WorkManager |
clone()
Clone the WorkManager implementation
|
protected void |
deltaDoWorkAccepted()
Delta doWork accepted
|
protected void |
deltaDoWorkRejected()
Delta doWork rejected
|
protected void |
deltaScheduleWorkAccepted()
Delta scheduleWork accepted
|
protected void |
deltaScheduleWorkRejected()
Delta scheduleWork rejected
|
protected void |
deltaStartWorkAccepted()
Delta startWork accepted
|
protected void |
deltaStartWorkRejected()
Delta startWork rejected
|
protected void |
deltaWorkFailed()
Delta work failed
|
protected void |
deltaWorkSuccessful()
Delta work successful
|
void |
doFirstChecks(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext)
Do first checks for work starting methods
|
void |
doWork(javax.resource.spi.work.Work work) |
void |
doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
org.jboss.jca.core.spi.security.Callback |
getCallbackSecurity()
Get the callback security module
|
String |
getId()
Get the unique id of the work manager
|
org.jboss.jca.core.api.workmanager.StatisticsExecutor |
getLongRunningThreadPool()
Retrieve the executor for long running tasks
|
String |
getName()
Get the name of the work manager
|
javax.resource.spi.ResourceAdapter |
getResourceAdapter()
Get the resource adapter
|
org.jboss.jca.core.api.workmanager.StatisticsExecutor |
getShortRunningThreadPool()
Retrieve the executor for short running tasks
|
org.jboss.jca.core.api.workmanager.WorkManagerStatistics |
getStatistics()
Get the statistics
|
org.jboss.jca.core.spi.transaction.xa.XATerminator |
getXATerminator()
Get the XATerminator
|
boolean |
isShutdown()
Is the component shutdown
|
boolean |
isSpecCompliant()
Is spec compliant
|
boolean |
isStatisticsEnabled()
Is statistics enabled
|
void |
prepareShutdown()
Signal the component to prepare for shutdown
|
void |
scheduleWork(javax.resource.spi.work.Work work) |
void |
scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
void |
setCallbackSecurity(org.jboss.jca.core.spi.security.Callback v)
Set callback security module
|
void |
setId(String v)
Set the unique id of the work manager
|
void |
setLongRunningThreadPool(org.jboss.threads.BlockingExecutor executor)
Set the executor for long running tasks
|
void |
setName(String v)
Set the name of the work manager
|
void |
setResourceAdapter(javax.resource.spi.ResourceAdapter v)
Set the resource adapter
|
void |
setShortRunningThreadPool(org.jboss.threads.BlockingExecutor executor)
Set the executor for short running tasks
|
void |
setSpecCompliant(boolean v)
Set spec compliant flag
|
void |
setStatisticsEnabled(boolean v)
Set the statistics enabled flag
|
void |
setXATerminator(org.jboss.jca.core.spi.transaction.xa.XATerminator xaTerminator)
Set the XATerminator
|
void |
shutdown()
Shutdown the component
|
long |
startWork(javax.resource.spi.work.Work work) |
long |
startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
String |
toString()
String representation
|
void |
toString(StringBuilder sb)
Additional string representation
|
public WorkManagerImpl()
public String getId()
public void setId(String v)
v - The valuepublic String getName()
public void setName(String v)
v - The valuepublic org.jboss.jca.core.api.workmanager.StatisticsExecutor getShortRunningThreadPool()
public void setShortRunningThreadPool(org.jboss.threads.BlockingExecutor executor)
executor - The executorpublic org.jboss.jca.core.api.workmanager.StatisticsExecutor getLongRunningThreadPool()
public void setLongRunningThreadPool(org.jboss.threads.BlockingExecutor executor)
executor - The executorpublic org.jboss.jca.core.spi.transaction.xa.XATerminator getXATerminator()
public void setXATerminator(org.jboss.jca.core.spi.transaction.xa.XATerminator xaTerminator)
xaTerminator - The XA terminatorpublic boolean isSpecCompliant()
public void setSpecCompliant(boolean v)
v - The valuepublic org.jboss.jca.core.spi.security.Callback getCallbackSecurity()
public void setCallbackSecurity(org.jboss.jca.core.spi.security.Callback v)
v - The valuepublic javax.resource.spi.ResourceAdapter getResourceAdapter()
public void setResourceAdapter(javax.resource.spi.ResourceAdapter v)
v - The valuepublic boolean isStatisticsEnabled()
public void setStatisticsEnabled(boolean v)
v - The valuepublic org.jboss.jca.core.api.workmanager.WorkManagerStatistics getStatistics()
public org.jboss.jca.core.api.workmanager.WorkManager clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - Thrown if the copy operation isn't supportedpublic void doWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
doWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic 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
doWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic long startWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
startWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic 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
startWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic void scheduleWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
scheduleWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic 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
scheduleWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionprotected void deltaDoWorkAccepted()
protected void deltaDoWorkRejected()
protected void deltaStartWorkAccepted()
protected void deltaStartWorkRejected()
protected void deltaScheduleWorkAccepted()
protected void deltaScheduleWorkRejected()
protected void deltaWorkSuccessful()
protected void deltaWorkFailed()
public void doFirstChecks(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext)
throws javax.resource.spi.work.WorkException
work - to checkstartTimeout - to checkexecContext - to checkjavax.resource.spi.work.WorkException - in case of check don't passpublic boolean cancelShutdown()
cancelShutdown in interface org.jboss.jca.core.spi.graceful.GracefulShutdownpublic void prepareShutdown()
prepareShutdown in interface org.jboss.jca.core.spi.graceful.GracefulShutdownpublic void shutdown()
shutdown in interface org.jboss.jca.core.spi.graceful.GracefulShutdownpublic boolean isShutdown()
isShutdown in interface org.jboss.jca.core.spi.graceful.GracefulShutdownpublic String toString()
public void toString(StringBuilder sb)
sb - The string builderCopyright © 2013 IronJacamar (http://www.ironjacamar.org)