Example #1
0
 public override ApplicationId GetApplicationId()
 {
     if (this.applicationId != null)
     {
         return(this.applicationId);
     }
     YarnServiceProtos.GetNewApplicationResponseProtoOrBuilder p = viaProto ? proto :
                                                                   builder;
     if (!p.HasApplicationId())
     {
         return(null);
     }
     this.applicationId = ConvertFromProtoFormat(p.GetApplicationId());
     return(this.applicationId);
 }
Example #2
0
 public override Resource GetMaximumResourceCapability()
 {
     if (this.maximumResourceCapability != null)
     {
         return(this.maximumResourceCapability);
     }
     YarnServiceProtos.GetNewApplicationResponseProtoOrBuilder p = viaProto ? proto :
                                                                   builder;
     if (!p.HasMaximumCapability())
     {
         return(null);
     }
     this.maximumResourceCapability = ConvertFromProtoFormat(p.GetMaximumCapability());
     return(this.maximumResourceCapability);
 }