Class DistributedSchedulingAMProtocolPBClientImpl
java.lang.Object
org.apache.hadoop.yarn.server.api.impl.pb.client.DistributedSchedulingAMProtocolPBClientImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.yarn.api.ApplicationMasterProtocol,DistributedSchedulingAMProtocol
public class DistributedSchedulingAMProtocolPBClientImpl
extends Object
implements DistributedSchedulingAMProtocol, Closeable
Implementation of
DistributedSchedulingAMProtocol, used when
distributed scheduling is enabled.-
Constructor Summary
ConstructorsConstructorDescriptionDistributedSchedulingAMProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.protocolrecords.AllocateResponseallocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request) Extends theallocateto wrap the response with additional metadata.voidclose()org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponsefinishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request) org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponseregisterApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) registerApplicationMasterForDistributedScheduling(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) Extends theregisterApplicationMasterto wrap the response with additional metadata.
-
Constructor Details
-
DistributedSchedulingAMProtocolPBClientImpl
public DistributedSchedulingAMProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
registerApplicationMasterForDistributedScheduling
public RegisterDistributedSchedulingAMResponse registerApplicationMasterForDistributedScheduling(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException Description copied from interface:DistributedSchedulingAMProtocolExtends the
registerApplicationMasterto wrap the response with additional metadata.- Specified by:
registerApplicationMasterForDistributedSchedulingin interfaceDistributedSchedulingAMProtocol- Parameters:
request- ApplicationMaster registration request- Returns:
- A
RegisterDistributedSchedulingAMResponsethat contains a standard AM registration response along with additional information required for distributed scheduling - Throws:
org.apache.hadoop.yarn.exceptions.YarnException- YarnExceptionIOException- IOException
-
allocateForDistributedScheduling
public DistributedSchedulingAllocateResponse allocateForDistributedScheduling(DistributedSchedulingAllocateRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException Description copied from interface:DistributedSchedulingAMProtocolExtends the
allocateto wrap the response with additional metadata.- Specified by:
allocateForDistributedSchedulingin interfaceDistributedSchedulingAMProtocol- Parameters:
request- ApplicationMaster allocate request- Returns:
- A
DistributedSchedulingAllocateResponsethat contains a standard AM allocate response along with additional information required for distributed scheduling - Throws:
org.apache.hadoop.yarn.exceptions.YarnException- YarnExceptionIOException- IOException
-
registerApplicationMaster
public org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
registerApplicationMasterin interfaceorg.apache.hadoop.yarn.api.ApplicationMasterProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
finishApplicationMaster
public org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
finishApplicationMasterin interfaceorg.apache.hadoop.yarn.api.ApplicationMasterProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
allocate
public org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
allocatein interfaceorg.apache.hadoop.yarn.api.ApplicationMasterProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-