|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobSubmissionProtocol
Protocol that a groom server and the central BSP Master use to communicate. This interface will contains several methods: submitJob, killJob, and killTask.
Field Summary |
---|
Fields inherited from interface org.apache.hama.ipc.HamaRPCProtocolVersion |
---|
versionID |
Method Summary | |
---|---|
JobStatus[] |
getAllJobs()
Get all the jobs submitted. |
ClusterStatus |
getClusterStatus(boolean detailed)
Get the current status of the cluster |
String |
getFilesystemName()
A BSP system always operates on a single filesystem. |
JobProfile |
getJobProfile(BSPJobID jobid)
Grab a handle to a job that is already known to the BSPMaster. |
JobStatus |
getJobStatus(BSPJobID jobid)
Grab a handle to a job that is already known to the BSPMaster. |
BSPJobID |
getNewJobId()
Allocate a new id for the job. |
String |
getSystemDir()
Grab the bspmaster system directory path where job-specific files are to be placed. |
JobStatus[] |
jobsToComplete()
Get the jobs that are not completed and not failed |
void |
killJob(BSPJobID jobid)
Kill the indicated job |
boolean |
killTask(TaskAttemptID taskId,
boolean shouldFail)
Kill indicated task attempt. |
JobStatus |
submitJob(BSPJobID jobID,
String jobFile)
Submit a Job for execution. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
Method Detail |
---|
BSPJobID getNewJobId() throws IOException
IOException
JobStatus submitJob(BSPJobID jobID, String jobFile) throws IOException
jobID
- jobFile
-
IOException
ClusterStatus getClusterStatus(boolean detailed) throws IOException
detailed
- if true then report groom names as well
IOException
JobProfile getJobProfile(BSPJobID jobid) throws IOException
IOException
JobStatus getJobStatus(BSPJobID jobid) throws IOException
IOException
String getFilesystemName() throws IOException
IOException
JobStatus[] jobsToComplete() throws IOException
IOException
JobStatus[] getAllJobs() throws IOException
IOException
String getSystemDir()
void killJob(BSPJobID jobid) throws IOException
IOException
boolean killTask(TaskAttemptID taskId, boolean shouldFail) throws IOException
taskId
- the id of the task to kill.shouldFail
- if true the task is failed and added to failed tasks
list, otherwise it is just killed, w/o affecting job failure
status.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |