Class Overview
Spring TaskExecutor adapter for the GlassFish JCA WorkManager.
Can be defined in web applications to make a TaskExecutor reference
available, talking to the GlassFish WorkManager (thread pool) underneath.
This is the GlassFish equivalent of the CommonJ
WorkManagerTaskExecutor
adapter for WebLogic and WebSphere.
See Also
- com.sun.enterprise.connectors.work.WorkManagerFactory
Summary
[Expand]
Inherited Methods |
From class
org.springframework.jca.work.WorkManagerTaskExecutor
void
|
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
void
|
doWork(Work work)
|
void
|
doWork(Work work, long delay, ExecutionContext executionContext, WorkListener workListener)
|
void
|
execute(Runnable task)
Execute the given task .
|
void
|
execute(Runnable task, long startTimeout)
Execute the given task .
|
WorkManager
|
getDefaultWorkManager()
Obtain a default WorkManager to delegate to.
|
boolean
|
prefersShortLivedTasks()
This task executor prefers short-lived work units.
|
void
|
scheduleWork(Work work, long delay, ExecutionContext executionContext, WorkListener workListener)
|
void
|
scheduleWork(Work work)
|
void
|
setBlockUntilCompleted(boolean blockUntilCompleted)
|
void
|
setBlockUntilStarted(boolean blockUntilStarted)
|
void
|
setBootstrapContext(BootstrapContext bootstrapContext)
Specify the JCA BootstrapContext that contains the
WorkManager to delegate to.
|
void
|
setWorkListener(WorkListener workListener)
Specify a JCA 1.5 WorkListener to apply, if any.
|
void
|
setWorkManager(WorkManager workManager)
Specify the JCA WorkManager instance to delegate to.
|
void
|
setWorkManagerName(String workManagerName)
Set the JNDI name of the JCA WorkManager.
|
long
|
startWork(Work work)
|
long
|
startWork(Work work, long delay, ExecutionContext executionContext, WorkListener workListener)
|
<T>
Future<T>
|
submit(Callable<T> task)
Submit a Callable task for execution, receiving a Future representing that task.
|
Future<?>
|
submit(Runnable task)
Submit a Runnable task for execution, receiving a Future representing that task.
|
|
From class
org.springframework.jndi.JndiLocatorSupport
String
|
convertJndiName(String jndiName)
Convert the given JNDI name into the actual JNDI name to use.
|
boolean
|
isResourceRef()
Return whether the lookup occurs in a J2EE container.
|
<T>
T
|
lookup(String jndiName, Class<T> requiredType)
Perform an actual JNDI lookup for the given name via the JndiTemplate.
|
Object
|
lookup(String jndiName)
Perform an actual JNDI lookup for the given name via the JndiTemplate.
|
void
|
setResourceRef(boolean resourceRef)
Set whether the lookup occurs in a J2EE container, i.e.
|
|
From class
org.springframework.jndi.JndiAccessor
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.util.concurrent.Executor
|
From interface
org.springframework.beans.factory.InitializingBean
abstract
void
|
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
|
From interface
org.springframework.core.task.AsyncTaskExecutor
abstract
void
|
execute(Runnable task, long startTimeout)
Execute the given task .
|
abstract
<T>
Future<T>
|
submit(Callable<T> task)
Submit a Callable task for execution, receiving a Future representing that task.
|
abstract
Future<?>
|
submit(Runnable task)
Submit a Runnable task for execution, receiving a Future representing that task.
|
|
From interface
org.springframework.core.task.TaskExecutor
|
From interface
org.springframework.jca.context.BootstrapContextAware
abstract
void
|
setBootstrapContext(BootstrapContext bootstrapContext)
Set the BootstrapContext that this object runs in.
|
|
From interface
org.springframework.scheduling.SchedulingTaskExecutor
abstract
boolean
|
prefersShortLivedTasks()
Does this TaskExecutor prefer short-lived tasks over
long-lived tasks?
A SchedulingTaskExecutor implementation can indicate
whether it prefers submitted tasks to perform as little work as they
can within a single task execution.
|
|
Public Constructors
public
GlassFishWorkManagerTaskExecutor
()
Public Methods
public
void
setThreadPoolName
(String threadPoolName)
Identify a specific GlassFish thread pool to talk to.
The thread pool name matches the resource adapter name
in default RAR deployment scenarios.
Protected Methods
protected
WorkManager
getDefaultWorkManager
()
Obtains GlassFish's default thread pool.