org.objectweb.cjdbc.controller.recoverylog
Class RecoveryTask

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.recoverylog.RecoveryTask

public class RecoveryTask
extends java.lang.Object

Recovery task containing an AbstractTask and the id of the task in the recovery log.

Version:
1.0
Author:
Emmanuel Cecchet , Julie Marguerite

Field Summary
private  long id
           
private  AbstractTask task
           
private  long tid
           
 
Constructor Summary
RecoveryTask(long tid, long id, AbstractTask task)
          Constructs a new RecoveryTask instance.
 
Method Summary
 long getId()
          Returns the id.
 AbstractTask getTask()
          Returns the task.
 long getTid()
          Returns the tid value.
 void setId(long id)
          Sets the id.
 void setTask(AbstractTask task)
          Sets the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private long id

tid

private long tid

task

private AbstractTask task
Constructor Detail

RecoveryTask

public RecoveryTask(long tid,
                    long id,
                    AbstractTask task)
Constructs a new RecoveryTask instance.

Parameters:
tid - transaction id
id - task id in the recovery log
task - task to be executed
Method Detail

getTid

public long getTid()
Returns the tid value.

Returns:
Returns the tid.

getId

public long getId()
Returns the id.

Returns:
int

getTask

public AbstractTask getTask()
Returns the task.

Returns:
AbstractTask

setId

public void setId(long id)
Sets the id.

Parameters:
id - the id to set

setTask

public void setTask(AbstractTask task)
Sets the task.

Parameters:
task - the task to set


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.