|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.replicaexecutor.EBReplicaExecutorFacade
public class EBReplicaExecutorFacade
Description: This class is responsible for queueing events in the
ReplicaExecutorEventEngine
. All communication with objects
inside the ReplicaExecutorEventEngine
is made through this
facade.
Constructor Summary | |
---|---|
EBReplicaExecutorFacade()
Creates a EBReplicaExecutorFacade |
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 |
config(ReplicaExecutorEventEngine replicaExecutorEventProcessor)
Configures the EBReplicaExecutorFacade by setting the ReplicaExecutorEventEngine . |
void |
executeReplica(ReplicaEntry replica,
GumClient gumClient)
Executes a given Replica with a specified
GridMachine |
ReplicaExecutorEventEngine |
getEventProcessor()
|
protected long |
getNumberOfAbortedReplicas()
|
protected long |
getNumberOfCancelledReplicas()
|
protected long |
getNumberOfFailedReplicas()
|
protected long |
getNumberOfFinishedReplicas()
|
protected long |
getNumberOfRunningReplicas()
|
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. |
protected void |
replicaFailed(ReplicaEntry replica)
Notifies the replica executor module that a given replica has failed |
protected void |
replicaFinished(ReplicaEntry replica)
Notifies the replica executor module that a given replica has finished. |
protected EventQueue<ResponseEvent<java.lang.Boolean>> |
requestPermission(ReplicaEntry replica)
Request permission to access the task's critical region. |
EventQueue<ShutdownResponseEvent> |
shutdown()
Shuts down the facade. |
void |
startEventProcessor()
Starts the ReplicaExecutorEventEngine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EBReplicaExecutorFacade()
EBReplicaExecutorFacade
Method Detail |
---|
public void executeReplica(ReplicaEntry replica, GumClient gumClient)
Replica
with a specified
GridMachine
replica
- The replica to be executedgumClient
- The grid machine where the replica should be executedpublic void cancelReplicasOfJob(int jobId)
Job
jobId
- The id of the job whose replicas should be canceled.protected void replicaFailed(ReplicaEntry replica)
replica
- The replica who has failed.protected void replicaFinished(ReplicaEntry replica)
replica
- The replica who has finished.public void replicaAborted(ReplicaEntry replica)
replica
- The replica who has been been aborted.public void replicaCanceled(ReplicaEntry replica)
replica
- The replica who has been cancelled.protected EventQueue<ResponseEvent<java.lang.Boolean>> requestPermission(ReplicaEntry replica)
replica
- The replica who wants to access it's task's critical
region.
public void config(EBSchedulerFacade ebSchedulerFacade)
EBSchedulerFacade
.
ebSchedulerFacade
- The EBSchedulerFacadepublic void config(ReplicaExecutorEventEngine replicaExecutorEventProcessor)
ReplicaExecutorEventEngine
.
replicaExecutorEventProcessor
- The
ReplicaExecutorEventEngine
public ReplicaExecutorEventEngine getEventProcessor()
ReplicaExecutroEventProcessor
public void startEventProcessor()
ReplicaExecutorEventEngine
public EventQueue<ShutdownResponseEvent> shutdown()
protected long getNumberOfCancelledReplicas()
protected long getNumberOfFailedReplicas()
protected long getNumberOfFinishedReplicas()
protected long getNumberOfAbortedReplicas()
protected long getNumberOfRunningReplicas()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |