org.apache.tez.dag.api.client.rpc
Class DAGClientRPCImpl

java.lang.Object
  extended by org.apache.tez.dag.api.client.rpc.DAGClientRPCImpl
All Implemented Interfaces:
Closeable, DAGClient

public class DAGClientRPCImpl
extends Object
implements DAGClient


Constructor Summary
DAGClientRPCImpl(org.apache.hadoop.yarn.api.records.ApplicationId appId, String dagId, TezConfiguration conf)
           
 
Method Summary
 void close()
           
 org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
          Get the YARN ApplicationId for the app running the DAG
 org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport()
           
 DAGStatus getDAGStatus(Set<StatusGetOpts> statusOptions)
          Get the status of the specified DAG
 VertexStatus getVertexStatus(String vertexName, Set<StatusGetOpts> statusOptions)
          Get the status of a Vertex of a DAG
 void tryKillDAG()
          Kill a running DAG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAGClientRPCImpl

public DAGClientRPCImpl(org.apache.hadoop.yarn.api.records.ApplicationId appId,
                        String dagId,
                        TezConfiguration conf)
Method Detail

getApplicationId

public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
Description copied from interface: DAGClient
Get the YARN ApplicationId for the app running the DAG

Specified by:
getApplicationId in interface DAGClient
Returns:
ApplicationId

getDAGStatus

public DAGStatus getDAGStatus(Set<StatusGetOpts> statusOptions)
                       throws IOException,
                              TezException
Description copied from interface: DAGClient
Get the status of the specified DAG

Specified by:
getDAGStatus in interface DAGClient
Parameters:
statusOptions - Optionally, retrieve additional information based on specified options
Throws:
IOException
TezException

getVertexStatus

public VertexStatus getVertexStatus(String vertexName,
                                    Set<StatusGetOpts> statusOptions)
                             throws IOException,
                                    TezException
Description copied from interface: DAGClient
Get the status of a Vertex of a DAG

Specified by:
getVertexStatus in interface DAGClient
statusOptions - Optionally, retrieve additional information based on specified options
Throws:
IOException
TezException

tryKillDAG

public void tryKillDAG()
                throws TezException,
                       IOException
Description copied from interface: DAGClient
Kill a running DAG

Specified by:
tryKillDAG in interface DAGClient
Throws:
TezException
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

getApplicationReport

public org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport()
Specified by:
getApplicationReport in interface DAGClient


Copyright © 2014 Apache Software Foundation. All rights reserved.