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

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnServiceProtos.GetNewApplicationResponseProto>
      extended by org.apache.hadoop.yarn.api.protocolrecords.impl.pb.GetNewApplicationResponsePBImpl
All Implemented Interfaces:
GetNewApplicationResponse

public class GetNewApplicationResponsePBImpl
extends ProtoBase<YarnServiceProtos.GetNewApplicationResponseProto>
implements GetNewApplicationResponse


Constructor Summary
GetNewApplicationResponsePBImpl()
           
GetNewApplicationResponsePBImpl(YarnServiceProtos.GetNewApplicationResponseProto proto)
           
 
Method Summary
 ApplicationId getApplicationId()
          Get the new ApplicationId allocated by the ResourceManager.
 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.GetNewApplicationResponseProto getProto()
           
 void setApplicationId(ApplicationId applicationId)
           
 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

GetNewApplicationResponsePBImpl

public GetNewApplicationResponsePBImpl()

GetNewApplicationResponsePBImpl

public GetNewApplicationResponsePBImpl(YarnServiceProtos.GetNewApplicationResponseProto proto)
Method Detail

getProto

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

getApplicationId

public ApplicationId getApplicationId()
Description copied from interface: GetNewApplicationResponse
Get the new ApplicationId allocated by the ResourceManager.

Specified by:
getApplicationId in interface GetNewApplicationResponse
Returns:
new ApplicationId allocated by the ResourceManager

setApplicationId

public void setApplicationId(ApplicationId applicationId)
Specified by:
setApplicationId in interface GetNewApplicationResponse

getMaximumResourceCapability

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

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

getMinimumResourceCapability

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

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

setMaximumResourceCapability

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

setMinimumResourceCapability

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


Copyright © 2012 Apache Software Foundation. All Rights Reserved.