|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Job interface. This interface is implemented by Jobs to be executed by the JobManager
Method Summary | |
JobResult |
execute()
This is the method which the JobManager will run when it tries to execute a job. |
java.lang.String |
getError()
This method returns a string describing the error which occoured during Job Execution. |
java.lang.String |
getExtendedStatus()
This field provides additional data as to the state of the job. |
int |
getJobID()
This returns the JobID the Job was issued by the JobManager |
java.lang.String |
getJobName()
It is often useful for naming a Job. |
JobResult |
getJobResult()
This method queries the Job for the JobResult object; which is the object which stores the return results of the Job's execution cycle. |
double |
getPercentage()
This method is useful for querying the Percentage Complete the job is. |
java.util.Date |
getStartDate()
This method should return the StartDate as set by the JobManager |
int |
getStatusID()
This method returns the statusID of the Job. |
void |
setError(java.lang.String error)
This sets the Error message. |
void |
setJobID(int jobID)
This method is called by the JobManager when it issues the Job and JobID |
void |
setStartDate(java.util.Date startDate)
When a Job is started by the JobManager it will attempt to set the startDate field |
void |
setStatusID(int statusID)
This methos is most often used by the JobManager. |
Method Detail |
public JobResult execute() throws java.lang.Exception
public double getPercentage()
public int getStatusID()
public void setStatusID(int statusID)
public java.lang.String getExtendedStatus()
public JobResult getJobResult()
public void setJobID(int jobID)
public int getJobID()
public java.lang.String getError()
public void setError(java.lang.String error)
public java.lang.String getJobName()
public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |