@InterfaceAudience.Private public class DAGClientRPCImpl extends DAGClientInternal
| Constructor and Description | 
|---|
DAGClientRPCImpl(org.apache.hadoop.yarn.api.records.ApplicationId appId,
                String dagId,
                TezConfiguration conf,
                FrameworkClient frameworkClient)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
protected org.apache.hadoop.yarn.api.records.ApplicationReport | 
getApplicationReportInternal()  | 
DAGStatus | 
getDAGStatus(Set<StatusGetOpts> statusOptions)
Get the status of the specified DAG 
 | 
DAGStatus | 
getDAGStatus(Set<StatusGetOpts> statusOptions,
            long timeout)
Get the status of the specified DAG when it reaches a final state, or the timeout expires. 
 | 
String | 
getExecutionContext()
Gets DAG execution context for use with logging 
 | 
VertexStatus | 
getVertexStatus(String vertexName,
               Set<StatusGetOpts> statusOptions)
Get the status of a Vertex of a DAG 
 | 
void | 
tryKillDAG()
Kill a running DAG 
 | 
DAGStatus | 
waitForCompletion()
Wait for DAG to complete without printing any vertex statuses 
 | 
DAGStatus | 
waitForCompletionWithStatusUpdates(Set<StatusGetOpts> statusGetOpts)
Wait for DAG to complete and periodically print *all* vertices' status. 
 | 
public DAGClientRPCImpl(org.apache.hadoop.yarn.api.records.ApplicationId appId,
                String dagId,
                TezConfiguration conf,
                @Nullable
                FrameworkClient frameworkClient)
public String getExecutionContext()
DAGClientInternalgetExecutionContext in class DAGClientInternalpublic DAGStatus getDAGStatus(Set<StatusGetOpts> statusOptions) throws IOException, TezException, org.apache.hadoop.yarn.exceptions.ApplicationNotFoundException
DAGClientInternalgetDAGStatus in class DAGClientInternalstatusOptions - Optionally, retrieve additional information based on
                      specified options. To retrieve basic information, this can be nullIOExceptionTezExceptionorg.apache.hadoop.yarn.exceptions.ApplicationNotFoundExceptionpublic DAGStatus getDAGStatus(@Nullable Set<StatusGetOpts> statusOptions, long timeout) throws IOException, TezException, org.apache.hadoop.yarn.exceptions.ApplicationNotFoundException
DAGClientInternalgetDAGStatus in class DAGClientInternalstatusOptions - Optionally, retrieve additional information based on
                      specified options. To retrieve basic information, this can be nulltimeout - RPC call timeout. Value -1 waits for infinite and returns when
                DAG reaches final stateIOExceptionTezExceptionorg.apache.hadoop.yarn.exceptions.ApplicationNotFoundExceptionpublic VertexStatus getVertexStatus(String vertexName, Set<StatusGetOpts> statusOptions) throws IOException, TezException, org.apache.hadoop.yarn.exceptions.ApplicationNotFoundException
DAGClientInternalgetVertexStatus in class DAGClientInternalstatusOptions - Optionally, retrieve additional information based on
                      specified optionsIOExceptionTezExceptionorg.apache.hadoop.yarn.exceptions.ApplicationNotFoundExceptionpublic void tryKillDAG()
                throws TezException,
                       IOException
DAGClientInternaltryKillDAG in class DAGClientInternalTezExceptionIOExceptionpublic void close()
           throws IOException
IOExceptionprotected org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReportInternal()
getApplicationReportInternal in class DAGClientInternalpublic DAGStatus waitForCompletion() throws IOException, TezException, InterruptedException
DAGClientInternalwaitForCompletion in class DAGClientInternalIOExceptionTezExceptionInterruptedExceptionpublic DAGStatus waitForCompletionWithStatusUpdates(@Nullable Set<StatusGetOpts> statusGetOpts) throws IOException, TezException, InterruptedException
DAGClientInternalwaitForCompletionWithStatusUpdates in class DAGClientInternalstatusGetOpts - : status get options. For example, to get counter pass
          EnumSet.of(StatusGetOpts.GET_COUNTERS)IOExceptionTezExceptionInterruptedExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.