org.objectweb.jonas.resource.ResourceWorkManager Class Reference

List of all members.

Public Member Functions

void doWork (Work work) throws WorkException
void doWork (Work work, long timeout, ExecutionContext eCtx, WorkListener wListen) throws WorkException
long startWork (Work work) throws WorkException
long startWork (Work work, long timeout, ExecutionContext eCtx, WorkListener wListen) throws WorkException
void scheduleWork (Work work) throws WorkException
void scheduleWork (Work work, long timeout, ExecutionContext eCtx, WorkListener wListen) throws WorkException
void setInited ()
void releasePool ()

Detailed Description

This class implements the WorkManager interface of the Connector Architecture 1.5 specification.

Definition at line 57 of file ResourceWorkManager.java.


Member Function Documentation

void org.objectweb.jonas.resource.ResourceWorkManager.doWork Work  work,
long  timeout,
ExecutionContext  eCtx,
WorkListener  wListen
throws WorkException
 

Run the specified work object and wait until it completes to return

Parameters:
work the Work object to execute
timeout the max number of milliseconds before Work object must start
eCtx the ExecutionContext to use for the Work object
wListen the WorkListener to use
Exceptions:
WorkException if an error occurs during the acceptance, starting or execution

Definition at line 132 of file ResourceWorkManager.java.

void org.objectweb.jonas.resource.ResourceWorkManager.doWork Work  work  )  throws WorkException
 

Run the specified work object and wait until it completes to return

Parameters:
work the Work object to execute
Exceptions:
WorkException if an error occurs during the acceptance, starting or execution

Definition at line 119 of file ResourceWorkManager.java.

void org.objectweb.jonas.resource.ResourceWorkManager.releasePool  ) 
 

Used for testing to cause the threads to go away

Definition at line 242 of file ResourceWorkManager.java.

void org.objectweb.jonas.resource.ResourceWorkManager.scheduleWork Work  work,
long  timeout,
ExecutionContext  eCtx,
WorkListener  wListen
throws WorkException
 

Run the specified work object and return when it has been accepted

Parameters:
work the Work object to execute
timeout the max number of milliseconds before Work object must start
eCtx the ExecutionContext to use for the Work object
wListen the WorkListener to use
Exceptions:
WorkException if an error occurs during the acceptance, starting or execution

Definition at line 215 of file ResourceWorkManager.java.

void org.objectweb.jonas.resource.ResourceWorkManager.scheduleWork Work  work  )  throws WorkException
 

Run the specified work object and return when it has been accepted

Parameters:
work the Work object to execute
Exceptions:
WorkException if an error occurs during the acceptance, starting or execution

Definition at line 202 of file ResourceWorkManager.java.

void org.objectweb.jonas.resource.ResourceWorkManager.setInited  ) 
 

Called when the RA is deployed, this will allow the threads to execute the scheduled work objects

Definition at line 230 of file ResourceWorkManager.java.

Referenced by org.objectweb.jonas.resource.Rar.processRar().

long org.objectweb.jonas.resource.ResourceWorkManager.startWork Work  work,
long  timeout,
ExecutionContext  eCtx,
WorkListener  wListen
throws WorkException
 

Run the specified work object and return when it has started

Parameters:
work the Work object to execute
timeout the max number of milliseconds before Work object must start
eCtx the ExecutionContext to use for the Work object
wListen the WorkListener to use
Returns:
long number of milliseconds elapsed between work acceptance and work start
Exceptions:
WorkException if an error occurs during the acceptance, starting or execution

Definition at line 175 of file ResourceWorkManager.java.

long org.objectweb.jonas.resource.ResourceWorkManager.startWork Work  work  )  throws WorkException
 

Run the specified work object and return when it has been started

Parameters:
work the Work object to execute
Returns:
long number of milliseconds elapsed between work acceptance and work start
Exceptions:
WorkException if an error occurs during the acceptance, starting or execution

Definition at line 160 of file ResourceWorkManager.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:33 2005 for JOnAS by  doxygen 1.3.9.1