org.apache.hadoop.yarn.api.protocolrecords.impl.pb
Class GetNewApplicationResponsePBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ProtoBase<YarnServiceProtos.GetNewApplicationResponseProto>
org.apache.hadoop.yarn.api.protocolrecords.impl.pb.GetNewApplicationResponsePBImpl
- All Implemented Interfaces:
- GetNewApplicationResponse
public class GetNewApplicationResponsePBImpl
- extends ProtoBase<YarnServiceProtos.GetNewApplicationResponseProto>
- implements GetNewApplicationResponse
GetNewApplicationResponsePBImpl
public GetNewApplicationResponsePBImpl()
GetNewApplicationResponsePBImpl
public GetNewApplicationResponsePBImpl(YarnServiceProtos.GetNewApplicationResponseProto proto)
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.