|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RunningJob
RunningJob
is the user-interface to query for details on a
running BSP job.
Clients can get hold of RunningJob
via the BSPJobClient
and then query the running-job for details such as name, configuration,
progress etc.
BSPJobClient
Method Summary | |
---|---|
BSPJobID |
getID()
Get the job identifier. |
java.lang.String |
getJobFile()
Get the path of the submitted job configuration. |
java.lang.String |
getJobName()
Get the name of the job. |
int |
getJobState()
Returns the current state of the Job. |
long |
getSuperstepCount()
|
boolean |
isComplete()
Check if the job is finished or not. |
boolean |
isSuccessful()
Check if the job completed successfully. |
void |
killJob()
Kill the running job. |
void |
killTask(TaskAttemptID taskId,
boolean shouldFail)
Kill indicated task attempt. |
long |
progress()
Get the progress of the job's tasks, as a float between 0.0 and 1.0. |
void |
waitForCompletion()
Blocks until the job is complete. |
Method Detail |
---|
BSPJobID getID()
java.lang.String getJobName()
java.lang.String getJobFile()
long progress() throws java.io.IOException
java.io.IOException
boolean isComplete() throws java.io.IOException
true
if the job is complete, else false
.
java.io.IOException
boolean isSuccessful() throws java.io.IOException
true
if the job succeeded, else false
.
java.io.IOException
void waitForCompletion() throws java.io.IOException
java.io.IOException
int getJobState() throws java.io.IOException
JobStatus
java.io.IOException
void killJob() throws java.io.IOException
java.io.IOException
void killTask(TaskAttemptID taskId, boolean shouldFail) throws java.io.IOException
taskId
- the id of the task to be terminated.shouldFail
- if true the task is failed and added to failed tasks
list, otherwise it is just killed, w/o affecting job failure
status.
java.io.IOException
long getSuperstepCount() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |