示例#1
0
 public override string GetNodeHttpAddress()
 {
     YarnProtos.ContainerProtoOrBuilder p = viaProto ? proto : builder;
     if (!p.HasNodeHttpAddress())
     {
         return(null);
     }
     return(p.GetNodeHttpAddress());
 }
示例#2
0
 public override Token GetContainerToken()
 {
     YarnProtos.ContainerProtoOrBuilder p = viaProto ? proto : builder;
     if (this.containerToken != null)
     {
         return(this.containerToken);
     }
     if (!p.HasContainerToken())
     {
         return(null);
     }
     this.containerToken = ConvertFromProtoFormat(p.GetContainerToken());
     return(this.containerToken);
 }
示例#3
0
 public override Priority GetPriority()
 {
     YarnProtos.ContainerProtoOrBuilder p = viaProto ? proto : builder;
     if (this.priority != null)
     {
         return(this.priority);
     }
     if (!p.HasPriority())
     {
         return(null);
     }
     this.priority = ConvertFromProtoFormat(p.GetPriority());
     return(this.priority);
 }
示例#4
0
 public override Resource GetResource()
 {
     YarnProtos.ContainerProtoOrBuilder p = viaProto ? proto : builder;
     if (this.resource != null)
     {
         return(this.resource);
     }
     if (!p.HasResource())
     {
         return(null);
     }
     this.resource = ConvertFromProtoFormat(p.GetResource());
     return(this.resource);
 }
示例#5
0
 public override NodeId GetNodeId()
 {
     YarnProtos.ContainerProtoOrBuilder p = viaProto ? proto : builder;
     if (this.nodeId != null)
     {
         return(this.nodeId);
     }
     if (!p.HasNodeId())
     {
         return(null);
     }
     this.nodeId = ConvertFromProtoFormat(p.GetNodeId());
     return(this.nodeId);
 }