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
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public 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 DistributedSchedulingAMProtocol
request
- 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 DistributedSchedulingAMProtocol
request
- 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.ApplicationMasterProtocol
org.apache.hadoop.yarn.exceptions.YarnException
IOException
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
finishApplicationMaster
in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocol
org.apache.hadoop.yarn.exceptions.YarnException
IOException
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
allocate
in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocol
org.apache.hadoop.yarn.exceptions.YarnException
IOException
Copyright © 2020 Apache Software Foundation. All rights reserved.