public virtual YarnProtos.PreemptionContainerProto GetProto()
 {
     lock (this)
     {
         MergeLocalToProto();
         proto    = viaProto ? proto : ((YarnProtos.PreemptionContainerProto)builder.Build());
         viaProto = true;
         return(proto);
     }
 }
 private void MergeLocalToProto()
 {
     if (viaProto)
     {
         MaybeInitBuilder();
     }
     MergeLocalToBuilder();
     proto    = ((YarnProtos.PreemptionContainerProto)builder.Build());
     viaProto = true;
 }
Example #3
0
 private PreemptionContainerPBImpl ConvertFromProtoFormat(YarnProtos.PreemptionContainerProto
                                                          p)
 {
     return(new PreemptionContainerPBImpl(p));
 }
 public PreemptionContainerPBImpl(YarnProtos.PreemptionContainerProto proto)
 {
     this.proto = proto;
     viaProto   = true;
 }