org.apache.hadoop.mapreduce.v2.api.impl.pb.client
Class MRClientProtocolPBClientImpl

java.lang.Object
  extended by org.apache.hadoop.mapreduce.v2.api.impl.pb.client.MRClientProtocolPBClientImpl
All Implemented Interfaces:
MRClientProtocol
Direct Known Subclasses:
HSClientProtocolPBClientImpl

public class MRClientProtocolPBClientImpl
extends Object
implements MRClientProtocol


Field Summary
protected  MRClientProtocolPB proxy
           
 
Constructor Summary
MRClientProtocolPBClientImpl()
           
MRClientProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 FailTaskAttemptResponse failTaskAttempt(FailTaskAttemptRequest request)
           
 InetSocketAddress getConnectAddress()
          Address to which the client is connected
 GetCountersResponse getCounters(GetCountersRequest request)
           
 GetDelegationTokenResponse getDelegationToken(GetDelegationTokenRequest request)
           
 GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
           
 GetJobReportResponse getJobReport(GetJobReportRequest request)
           
 GetTaskAttemptCompletionEventsResponse getTaskAttemptCompletionEvents(GetTaskAttemptCompletionEventsRequest request)
           
 GetTaskAttemptReportResponse getTaskAttemptReport(GetTaskAttemptReportRequest request)
           
 GetTaskReportResponse getTaskReport(GetTaskReportRequest request)
           
 GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request)
           
 KillJobResponse killJob(KillJobRequest request)
           
 KillTaskResponse killTask(KillTaskRequest request)
           
 KillTaskAttemptResponse killTaskAttempt(KillTaskAttemptRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxy

protected MRClientProtocolPB proxy
Constructor Detail

MRClientProtocolPBClientImpl

public MRClientProtocolPBClientImpl()

MRClientProtocolPBClientImpl

public MRClientProtocolPBClientImpl(long clientVersion,
                                    InetSocketAddress addr,
                                    org.apache.hadoop.conf.Configuration conf)
                             throws IOException
Throws:
IOException
Method Detail

getConnectAddress

public InetSocketAddress getConnectAddress()
Description copied from interface: MRClientProtocol
Address to which the client is connected

Specified by:
getConnectAddress in interface MRClientProtocol
Returns:
InetSocketAddress

getJobReport

public GetJobReportResponse getJobReport(GetJobReportRequest request)
                                  throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getJobReport in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getTaskReport

public GetTaskReportResponse getTaskReport(GetTaskReportRequest request)
                                    throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getTaskReport in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getTaskAttemptReport

public GetTaskAttemptReportResponse getTaskAttemptReport(GetTaskAttemptReportRequest request)
                                                  throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getTaskAttemptReport in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getCounters

public GetCountersResponse getCounters(GetCountersRequest request)
                                throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getCounters in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getTaskAttemptCompletionEvents

public GetTaskAttemptCompletionEventsResponse getTaskAttemptCompletionEvents(GetTaskAttemptCompletionEventsRequest request)
                                                                      throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getTaskAttemptCompletionEvents in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getTaskReports

public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request)
                                      throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getTaskReports in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getDiagnostics

public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
                                      throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getDiagnostics in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getDelegationToken

public GetDelegationTokenResponse getDelegationToken(GetDelegationTokenRequest request)
                                              throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getDelegationToken in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

killJob

public KillJobResponse killJob(KillJobRequest request)
                        throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
killJob in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

killTask

public KillTaskResponse killTask(KillTaskRequest request)
                          throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
killTask in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

killTaskAttempt

public KillTaskAttemptResponse killTaskAttempt(KillTaskAttemptRequest request)
                                        throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
killTaskAttempt in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

failTaskAttempt

public FailTaskAttemptResponse failTaskAttempt(FailTaskAttemptRequest request)
                                        throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
failTaskAttempt in interface MRClientProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.