Example #1
0
 public override int GetConcurrency()
 {
     YarnProtos.ReservationRequestProtoOrBuilder p = viaProto ? proto : builder;
     if (!p.HasConcurrency())
     {
         return 1;
     }
     return (p.GetConcurrency());
 }
Example #2
0
 public override long GetDuration()
 {
     YarnProtos.ReservationRequestProtoOrBuilder p = viaProto ? proto : builder;
     if (!p.HasDuration())
     {
         return 0;
     }
     return (p.GetDuration());
 }
Example #3
0
 public override Resource GetCapability()
 {
     YarnProtos.ReservationRequestProtoOrBuilder p = viaProto ? proto : builder;
     if (this.capability != null)
     {
         return this.capability;
     }
     if (!p.HasCapability())
     {
         return null;
     }
     this.capability = ConvertFromProtoFormat(p.GetCapability());
     return this.capability;
 }
Example #4
0
 public override int GetNumContainers()
 {
     YarnProtos.ReservationRequestProtoOrBuilder p = viaProto ? proto : builder;
     return (p.GetNumContainers());
 }