|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridbus.broker.common.WorkUnit
public abstract class WorkUnit
| Field Summary | |
|---|---|
protected ApplicationContext |
application
|
protected java.lang.String |
name
|
protected Service |
service
|
protected int |
status
|
protected Task |
task
|
protected int |
type
|
protected java.util.Map |
variableTable
|
| Constructor Summary | |
|---|---|
WorkUnit()
|
|
| Method Summary | |
|---|---|
void |
addVariable(Variable var)
Add a Variable to the variables list |
void |
clearVariables()
Clear the variable list for this job |
ApplicationContext |
getApplication()
|
long |
getCompletedTime()
|
java.lang.String |
getErrorDescription()
|
java.lang.String |
getName()
Returns the Identification String for this job |
long |
getSubmittedTime()
|
Task |
getTask()
Task is the sequence of commands that describe what a job has to do. |
UserCredential |
getUserCredential()
|
java.util.Map |
getVariableTable()
Returns the hashtable containing variables and their values for this job. |
java.lang.String |
getVariableValue(java.lang.String name)
returns the value of the variable name passed. |
java.util.Map |
getVariableValueTable()
Returns the table of variables(values) |
long |
getWallClockTimeTaken()
This function returns the difference between the job completed timestamp and the job submitted timestamp |
void |
removeVariable(Variable var)
Remove the variable name passed and its corresponding values from the list of variables |
void |
setApplication(ApplicationContext application)
|
void |
setCompletedTime(long completedTime)
|
void |
setErrorDescription(java.lang.String errorDescription)
|
void |
setName(java.lang.String name)
Sets the job identifier |
void |
setSubmittedTime(long jobSubmittedTime)
|
void |
setTask(Task task)
This sets the task for this job |
void |
setUserCredential(UserCredential userCredential)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ApplicationContext application
protected java.lang.String name
protected Service service
protected java.util.Map variableTable
protected Task task
protected int status
protected int type
| Constructor Detail |
|---|
public WorkUnit()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - public long getWallClockTimeTaken()
public UserCredential getUserCredential()
public void setUserCredential(UserCredential userCredential)
userCredential - The userCredential to set.public long getCompletedTime()
public void setCompletedTime(long completedTime)
completedTime - The jobCompletedTime to set.public long getSubmittedTime()
public void setSubmittedTime(long jobSubmittedTime)
jobSubmittedTime - The jobSubmittedTime to set.public ApplicationContext getApplication()
public void setApplication(ApplicationContext application)
application - The application to set.public java.lang.String getErrorDescription()
public void setErrorDescription(java.lang.String errorDescription)
errorDescription - The errorDescription to set.public Task getTask()
public void setTask(Task task)
task - public java.util.Map getVariableTable()
public void addVariable(Variable var)
var - - a Variable object which contains the variable name and the variable valuepublic java.lang.String getVariableValue(java.lang.String name)
name -
public java.util.Map getVariableValueTable()
public void removeVariable(Variable var)
var - public void clearVariables()
|
Copyright © The University of Melbourne. 2006 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||