org.ow2.easybeans.jca.workmanager
Class ResourceWork

java.lang.Object
  extended by org.ow2.easybeans.jca.workmanager.ResourceWork

public class ResourceWork
extends java.lang.Object

This class defines a work of the JCA API by adding some properties around this work.

Author:
Philippe Durieux (JOnAS), Florent Benoit (EasyBeans)

Constructor Summary
ResourceWork(Work work, long timeout, ExecutionContext executionContext, WorkListener workListener)
          Default constructor : build a wrapper around the given work.
 
Method Summary
 long getCreationTime()
           
 ExecutionContext getExecutionContext()
           
 long getTimeout()
           
 Work getWork()
           
 WorkListener getWorkListener()
           
 boolean isStarted()
           
 void setStarted()
          Sets the started mode to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceWork

public ResourceWork(Work work,
                    long timeout,
                    ExecutionContext executionContext,
                    WorkListener workListener)
Default constructor : build a wrapper around the given work.

Parameters:
work - the given work
timeout - the timeout of this work
executionContext - the context for the given work
workListener - the listener on this work object
Method Detail

getWork

public Work getWork()
Returns:
the work object

getTimeout

public long getTimeout()
Returns:
the timeout of this object

getExecutionContext

public ExecutionContext getExecutionContext()
Returns:
the execution context of this work

getWorkListener

public WorkListener getWorkListener()
Returns:
the listener of this work.

getCreationTime

public long getCreationTime()
Returns:
the creation time of this object.

isStarted

public boolean isStarted()
Returns:
true if the work has been started, else false.

setStarted

public void setStarted()
Sets the started mode to true.



Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.