|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.replicaexecutor.EBReplicaExecutorFacade
org.ourgrid.mygrid.replicaexecutor.test.FakeEBReplicaExecutorFacade
public class FakeEBReplicaExecutorFacade
Description: A fake class to be used by unit tests.
Constructor Summary | |
---|---|
FakeEBReplicaExecutorFacade()
|
Method Summary | |
---|---|
void |
cancelReplicasOfJob(int jobId)
Cancel all replicas of a given Job |
void |
config(EBSchedulerFacade ebSchedulerFacade)
Configures the EBReplicaExecutorFacade by setting the EBSchedulerFacade . |
void |
executeReplica(ReplicaEntry replica,
GumClient gumClient)
Executes a given Replica with a specified
GridMachine |
ReplicaEntry |
getLastScheduledReplica()
|
void |
replicaAborted(ReplicaEntry replica)
Notifies the replica executor module that a given replica has been aborted. |
void |
replicaCanceled(ReplicaEntry replica)
Notifies the replica executor module that a given replica has been cancelled. |
void |
replicaFailed(ReplicaEntry replica)
Notifies the replica executor module that a given replica has failed |
void |
replicaFinished(ReplicaEntry replica)
Notifies the replica executor module that a given replica has finished. |
protected EventQueue |
requestPermission(ReplicaEntry replica)
Request permission to access the task's critical region. |
void |
setReplicaStateToBeReturned(ExecutionStatus state)
|
EventQueue |
shutdown()
Shuts down the facade. |
void |
startEventProcessor()
Starts the ReplicaExecutorEventEngine |
Methods inherited from class org.ourgrid.mygrid.replicaexecutor.EBReplicaExecutorFacade |
---|
config, getEventProcessor, getNumberOfAbortedReplicas, getNumberOfCancelledReplicas, getNumberOfFailedReplicas, getNumberOfFinishedReplicas, getNumberOfRunningReplicas |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeEBReplicaExecutorFacade()
Method Detail |
---|
public void executeReplica(ReplicaEntry replica, GumClient gumClient)
EBReplicaExecutorFacade
Replica
with a specified
GridMachine
executeReplica
in class EBReplicaExecutorFacade
replica
- The replica to be executedgumClient
- The grid machine where the replica should be executedpublic void setReplicaStateToBeReturned(ExecutionStatus state)
public void cancelReplicasOfJob(int jobId)
EBReplicaExecutorFacade
Job
cancelReplicasOfJob
in class EBReplicaExecutorFacade
jobId
- The id of the job whose replicas should be canceled.public void config(EBSchedulerFacade ebSchedulerFacade)
EBReplicaExecutorFacade
EBSchedulerFacade
.
config
in class EBReplicaExecutorFacade
ebSchedulerFacade
- The EBSchedulerFacadepublic void replicaCanceled(ReplicaEntry replica)
EBReplicaExecutorFacade
replicaCanceled
in class EBReplicaExecutorFacade
replica
- The replica who has been cancelled.public void replicaFailed(ReplicaEntry replica)
EBReplicaExecutorFacade
replicaFailed
in class EBReplicaExecutorFacade
replica
- The replica who has failed.public void replicaFinished(ReplicaEntry replica)
EBReplicaExecutorFacade
replicaFinished
in class EBReplicaExecutorFacade
replica
- The replica who has finished.public void replicaAborted(ReplicaEntry replica)
EBReplicaExecutorFacade
replicaAborted
in class EBReplicaExecutorFacade
replica
- The replica who has been been aborted.protected EventQueue requestPermission(ReplicaEntry replica)
EBReplicaExecutorFacade
requestPermission
in class EBReplicaExecutorFacade
replica
- The replica who wants to access it's task's critical
region.
public EventQueue shutdown()
EBReplicaExecutorFacade
shutdown
in class EBReplicaExecutorFacade
public void startEventProcessor()
EBReplicaExecutorFacade
ReplicaExecutorEventEngine
startEventProcessor
in class EBReplicaExecutorFacade
public ReplicaEntry getLastScheduledReplica()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |