org.ourgrid.mygrid.replicaexecutor.test
Class FakeReplicaExecutorThread

java.lang.Object
  extended by org.ourgrid.mygrid.replicaexecutor.test.FakeReplicaExecutorThread
All Implemented Interfaces:
java.lang.Runnable, ReplicaExecutor

public class FakeReplicaExecutorThread
extends java.lang.Object
implements ReplicaExecutor

Description: a fake class to be used by unit tests

Version:
1.0 Created on 12/07/2004

Constructor Summary
FakeReplicaExecutorThread(ReplicaEntry replica, EBReplicaExecutorFacade ebReplicaExecutorFacade)
           
 
Method Summary
 void abortReplica()
          Tries to abort the replica associated with this thread
 void cancelReplica()
          Tries to cancel the replica associated with this thread
 ReplicaEntry getReplica()
          Gets the replica associated with this thread
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeReplicaExecutorThread

public FakeReplicaExecutorThread(ReplicaEntry replica,
                                 EBReplicaExecutorFacade ebReplicaExecutorFacade)
Method Detail

cancelReplica

public void cancelReplica()
Description copied from interface: ReplicaExecutor
Tries to cancel the replica associated with this thread

Specified by:
cancelReplica in interface ReplicaExecutor

abortReplica

public void abortReplica()
Description copied from interface: ReplicaExecutor
Tries to abort the replica associated with this thread

Specified by:
abortReplica in interface ReplicaExecutor

getReplica

public ReplicaEntry getReplica()
Description copied from interface: ReplicaExecutor
Gets the replica associated with this thread

Specified by:
getReplica in interface ReplicaExecutor
Returns:
The replica associated with this thread

run

public void run()
Specified by:
run in interface java.lang.Runnable