|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An ExecutableObject provides a high-level abstraction for
elements that can be executed on the Grid. It can be specialized as a Grid
Taskor a TaskGraph. Every ExecutableObject
in the abstractions framework has a unique Identityand an execution
Status.
| Field Summary | |
static int |
TASK
Represents a Tasktype ExecutableObject |
static int |
TASKGRAPH
Represents a TaskGraphtype ExecutableObject |
| Method Summary | |
void |
addStatusListener(StatusListener listener)
Adds a listener to receive status events when the status of an ExecutableObject is changed. |
Identity |
getIdentity()
Returns the unique Identity assigned to this
ExecutableObject. |
String |
getName()
Returns the user-friendly name assigned to this ExecutableObject. |
int |
getObjectType()
Returns the type of this ExecutableObject. |
Status |
getStatus()
Returns the current Status of this
ExecutableObject. |
void |
removeStatusListener(StatusListener listener)
Removes the status listener from the list of active listeners. |
void |
setIdentity(Identity id)
Sets a unique Identity for this
ExecutableObject. |
void |
setName(String name)
Sets the name of this ExecutableObject. |
void |
setStatus(int status)
Sets the current status of this ExecutableObject. |
void |
setStatus(Status status)
Sets the current Status of this
ExecutableObject. |
| Field Detail |
public static final int TASK
Tasktype ExecutableObject
public static final int TASKGRAPH
TaskGraphtype ExecutableObject
| Method Detail |
public void setName(String name)
ExecutableObject. Defines a
user-friendly name which need not be unique.
name - a string specifying the name of this
ExecutableObject.public String getName()
ExecutableObject.
public void setIdentity(Identity id)
Identity for this
ExecutableObject.
id - the unique Identity.public Identity getIdentity()
Identity assigned to this
ExecutableObject.
public int getObjectType()
ExecutableObject. Currently, two
types are supported: Taskand TaskGraph. Additional
types can be supported by classes implementing this interface.
public void setStatus(Status status)
Status of this
ExecutableObject.
status - the latest status of this ExecutableObject.public void setStatus(int status)
ExecutableObject.
Supported status are:
Status.UNSUBMITTED, Status.SUBMITTED, Status.ACTIVE,
Status.SUSPENDED,Status.RESUMED,Status.FAILED,
Status.CANCELED,Status.COMPLETED,
Status.UNKNOWN
public Status getStatus()
Status of this
ExecutableObject.
public void addStatusListener(StatusListener listener)
ExecutableObject is changed.
listener - the status listenerpublic void removeStatusListener(StatusListener listener)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||