java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.yarn.api.ApplicationMasterProtocol, DistributedSchedulingAMProtocolpublic class DistributedSchedulingAMProtocolPBClientImpl extends java.lang.Object implements DistributedSchedulingAMProtocol, java.io.Closeable
DistributedSchedulingAMProtocol, used when
distributed scheduling is enabled.| Constructor | Description |
|---|---|
DistributedSchedulingAMProtocolPBClientImpl(long clientVersion,
java.net.InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | 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,
java.net.InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablepublic RegisterDistributedSchedulingAMResponse registerApplicationMasterForDistributedScheduling(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.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 - YarnExceptionjava.io.IOException - IOExceptionpublic DistributedSchedulingAllocateResponse allocateForDistributedScheduling(DistributedSchedulingAllocateRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.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 - YarnExceptionjava.io.IOException - IOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
registerApplicationMaster in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
finishApplicationMaster in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
allocate in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.