org.ourgrid.mygrid.replicaexecutor
Class ReplicaExecutorThread

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

public class ReplicaExecutorThread
extends java.lang.Object
implements ReplicaExecutor

Description: This class is in charge of executing a replica.

Version:
1.0 Created on 13/07/2004

Constructor Summary
ReplicaExecutorThread(java.lang.String threadName, ReplicaEntry replica, GumClient gumClient, EBReplicaExecutorFacade ebReplicaExecutorFacade)
          Main constructor
 
Method Summary
 void abortReplica()
          Tries to abort the replica associated with this thread.
 void cancelReplica()
          Tries to cancel the replica associated with this thread
 java.lang.String getName()
          Gets the name of this thread
 ReplicaEntry getReplica()
          Status Gets the replica associated with this thread
 ReplicaExecutorResult getReplicaExecutorResult()
          Gets the replica's execution result
 ExecutionStatus getReplicaState()
          Gets the state of the replica associated with this thread
 ExecutionStatus getStatus()
          Gets this thread's execution state
 void run()
          Tries to execute the replica
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicaExecutorThread

public ReplicaExecutorThread(java.lang.String threadName,
                             ReplicaEntry replica,
                             GumClient gumClient,
                             EBReplicaExecutorFacade ebReplicaExecutorFacade)
Main constructor

Parameters:
threadName - This thread's name
replica - The replica to be executed
gumClient - The grid machine where the replica will be executed
ebReplicaExecutorFacade - The EBReplicaExecutorFacade object
Method Detail

cancelReplica

public void cancelReplica()
Tries to cancel the replica associated with this thread

Specified by:
cancelReplica in interface ReplicaExecutor

abortReplica

public void abortReplica()
Tries to abort the replica associated with this thread.

Specified by:
abortReplica in interface ReplicaExecutor

getReplica

public ReplicaEntry getReplica()
Status Gets the replica associated with this thread

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

getName

public java.lang.String getName()
Gets the name of this thread

Returns:
The name of this thread

getReplicaState

public ExecutionStatus getReplicaState()
Gets the state of the replica associated with this thread

Returns:
The state of the replica associated with this thread

getStatus

public ExecutionStatus getStatus()
Gets this thread's execution state

Returns:
This thread's execution state

getReplicaExecutorResult

public ReplicaExecutorResult getReplicaExecutorResult()
Gets the replica's execution result

Returns:
A ReplicaExecutorResult object that represents the result of the replica execution

run

public void run()
Tries to execute the replica

Specified by:
run in interface java.lang.Runnable