public class DistributedSchedulingAMProtocolPBClientImpl extends Object implements DistributedSchedulingAMProtocol, Closeable
DistributedSchedulingAMProtocol, used when
distributed scheduling is enabled.| Constructor and Description |
|---|
DistributedSchedulingAMProtocolPBClientImpl(long clientVersion,
InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse |
allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request) |
DistributedSchedulingAllocateResponse |
allocateForDistributedScheduling(DistributedSchedulingAllocateRequest request)
Extends the
allocate to wrap the response with additional
metadata. |
void |
close() |
org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse |
finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request) |
org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse |
registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) |
RegisterDistributedSchedulingAMResponse |
registerApplicationMasterForDistributedScheduling(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request)
Extends the
registerApplicationMaster to wrap the response
with additional metadata. |
public DistributedSchedulingAMProtocolPBClientImpl(long clientVersion,
InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic RegisterDistributedSchedulingAMResponse registerApplicationMasterForDistributedScheduling(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
DistributedSchedulingAMProtocol
Extends the registerApplicationMaster to wrap the response
with additional metadata.
registerApplicationMasterForDistributedScheduling in interface DistributedSchedulingAMProtocolrequest - ApplicationMaster registration requestRegisterDistributedSchedulingAMResponse that
contains a standard AM registration response along with additional
information required for distributed schedulingorg.apache.hadoop.yarn.exceptions.YarnException - YarnExceptionIOException - IOExceptionpublic DistributedSchedulingAllocateResponse allocateForDistributedScheduling(DistributedSchedulingAllocateRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
DistributedSchedulingAMProtocol
Extends the allocate to wrap the response with additional
metadata.
allocateForDistributedScheduling in interface DistributedSchedulingAMProtocolrequest - ApplicationMaster allocate requestDistributedSchedulingAllocateResponse that contains
a standard AM allocate response along with additional information
required for distributed schedulingorg.apache.hadoop.yarn.exceptions.YarnException - YarnExceptionIOException - IOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
registerApplicationMaster in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
finishApplicationMaster in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
allocate in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.