public abstract class JobMonitor extends Object
Modifier and Type | Field and Description |
---|---|
protected ClientContext |
clientContext |
Constructor and Description |
---|
JobMonitor(ClientContext clientContext) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleanup AppAdminClient, etc.
|
abstract JobStatus |
getTrainingJobStatus(String jobName)
Returns status of training job.
|
void |
waitTrainingFinal(String jobName)
Continue wait and print status if job goes to ready or final state.
|
protected ClientContext clientContext
public JobMonitor(ClientContext clientContext)
public abstract JobStatus getTrainingJobStatus(String jobName) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
jobName
- name of jobIOException
- anything else happensorg.apache.hadoop.yarn.exceptions.YarnException
- anything related to YARN happenspublic void cleanup() throws IOException
IOException
public void waitTrainingFinal(String jobName) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException, SubmarineException
jobName
- IOException
org.apache.hadoop.yarn.exceptions.YarnException
SubmarineException
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.