|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.scheduler.jobmanager.ReplicaEntry
public class ReplicaEntry
A replica is the lower level abstraction that is executed on the
GridMachine
s. It contains all necessary information to run a
a job task. All replicas of a task differ only in their identification, the
remaining information is the same to all replicas. In other words, a replica
is a representation of a task to be executed on the remote machines.
Constructor Summary | |
---|---|
ReplicaEntry(int id,
int taskId,
int jobId,
TaskSpec taskSpec)
The constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
GumID |
getGumID()
Returns the ID of the GridMachine assigned to execute this
replica. |
int |
getId()
Returns the identification of this replica. |
int |
getJobId()
Returns the owner job identification. |
ReplicaExecutorResult |
getResult()
Gets the ReplicaExecutorResult of this replica. |
TaskSpec |
getSpec()
Returns the TaskSpec of this replica. |
ExecutionStatus |
getStatus()
Returns the state of the replica. |
int |
getTaskId()
Returns the owner task identification. |
void |
setGumID(GumID gumID)
Sets the ID of the GridMachine assigned to execute this
replica. |
void |
setResult(ReplicaExecutorResult result)
Sets the ReplicaExecutorResult of this replica. |
void |
setStatus(ExecutionStatus state)
Sets the state of the replica. |
java.lang.String |
toString()
Returns a unique string representation for this replica. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReplicaEntry(int id, int taskId, int jobId, TaskSpec taskSpec)
id
- The replica idtaskId
- The task idjobId
- The job idMethod Detail |
---|
public TaskSpec getSpec()
TaskSpec
of this replica.
TaskSpec
public void setStatus(ExecutionStatus state)
state
- The new state of the replicapublic ExecutionStatus getStatus()
public int getJobId()
public int getTaskId()
public int getId()
public void setResult(ReplicaExecutorResult result)
result
- The result of the replica executionpublic ReplicaExecutorResult getResult()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public GumID getGumID()
GridMachine
assigned to execute this
replica.
GridMachine
ID.public void setGumID(GumID gumID)
GridMachine
assigned to execute this
replica.
gumID
- The GridMachine
ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |