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  int id
           
private  AbstractTask task
           
private  long tid
           
 
Constructor Summary
RecoveryTask(long tid, int id, AbstractTask task)
          Constructs a new RecoveryTask instance.
 
Method Summary
 int getId()
          Returns the id.
 AbstractTask getTask()
          Returns the task.
 long getTid()
          Returns the tid value.
 void setId(int 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 int id

tid

private long tid

task

private AbstractTask task
Constructor Detail

RecoveryTask

public RecoveryTask(long tid,
                    int 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 int getId()
Returns the id.

Returns:
int

getTask

public AbstractTask getTask()
Returns the task.

Returns:
AbstractTask

setId

public void setId(int 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.