org.apache.hadoop.yarn.api.protocolrecords.impl.pb
Class RegisterApplicationMasterResponsePBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnServiceProtos.RegisterApplicationMasterResponseProto>
      extended by org.apache.hadoop.yarn.api.protocolrecords.impl.pb.RegisterApplicationMasterResponsePBImpl
All Implemented Interfaces:
RegisterApplicationMasterResponse

public class RegisterApplicationMasterResponsePBImpl
extends ProtoBase<YarnServiceProtos.RegisterApplicationMasterResponseProto>
implements RegisterApplicationMasterResponse


Constructor Summary
RegisterApplicationMasterResponsePBImpl()
           
RegisterApplicationMasterResponsePBImpl(YarnServiceProtos.RegisterApplicationMasterResponseProto proto)
           
 
Method Summary
 Map<ApplicationAccessType,String> getApplicationACLs()
          Get the ApplicationACLs for the application.
 Resource getMaximumResourceCapability()
          Get the maximum capability for any Resource allocated by the ResourceManager in the cluster.
 Resource getMinimumResourceCapability()
          Get the minimum capability for any Resource allocated by the ResourceManager in the cluster.
 YarnServiceProtos.RegisterApplicationMasterResponseProto getProto()
           
 void setApplicationACLs(Map<ApplicationAccessType,String> appACLs)
          Set the ApplicationACLs for the application.
 void setMaximumResourceCapability(Resource capability)
           
 void setMinimumResourceCapability(Resource capability)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegisterApplicationMasterResponsePBImpl

public RegisterApplicationMasterResponsePBImpl()

RegisterApplicationMasterResponsePBImpl

public RegisterApplicationMasterResponsePBImpl(YarnServiceProtos.RegisterApplicationMasterResponseProto proto)
Method Detail

getProto

public YarnServiceProtos.RegisterApplicationMasterResponseProto getProto()
Specified by:
getProto in class ProtoBase<YarnServiceProtos.RegisterApplicationMasterResponseProto>

getMaximumResourceCapability

public Resource getMaximumResourceCapability()
Description copied from interface: RegisterApplicationMasterResponse
Get the maximum capability for any Resource allocated by the ResourceManager in the cluster.

Specified by:
getMaximumResourceCapability in interface RegisterApplicationMasterResponse
Returns:
maximum capability of allocated resources in the cluster

getMinimumResourceCapability

public Resource getMinimumResourceCapability()
Description copied from interface: RegisterApplicationMasterResponse
Get the minimum capability for any Resource allocated by the ResourceManager in the cluster.

Specified by:
getMinimumResourceCapability in interface RegisterApplicationMasterResponse
Returns:
minimum capability of allocated resources in the cluster

setMaximumResourceCapability

public void setMaximumResourceCapability(Resource capability)
Specified by:
setMaximumResourceCapability in interface RegisterApplicationMasterResponse

setMinimumResourceCapability

public void setMinimumResourceCapability(Resource capability)
Specified by:
setMinimumResourceCapability in interface RegisterApplicationMasterResponse

getApplicationACLs

public Map<ApplicationAccessType,String> getApplicationACLs()
Description copied from interface: RegisterApplicationMasterResponse
Get the ApplicationACLs for the application.

Specified by:
getApplicationACLs in interface RegisterApplicationMasterResponse
Returns:
all the ApplicationACLs

setApplicationACLs

public void setApplicationACLs(Map<ApplicationAccessType,String> appACLs)
Description copied from interface: RegisterApplicationMasterResponse
Set the ApplicationACLs for the application.

Specified by:
setApplicationACLs in interface RegisterApplicationMasterResponse


Copyright © 2012 Apache Software Foundation. All Rights Reserved.