コード例 #1
0
 public override int GetResponseId()
 {
     lock (this)
     {
         YarnServerCommonProtos.NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
         return(p.GetResponseId());
     }
 }
コード例 #2
0
 public override NodeHealthStatus GetNodeHealthStatus()
 {
     lock (this)
     {
         YarnServerCommonProtos.NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
         if (nodeHealthStatus != null)
         {
             return(nodeHealthStatus);
         }
         if (!p.HasNodeHealthStatus())
         {
             return(null);
         }
         nodeHealthStatus = ConvertFromProtoFormat(p.GetNodeHealthStatus());
         return(nodeHealthStatus);
     }
 }
コード例 #3
0
 private void InitKeepAliveApplications()
 {
     lock (this)
     {
         if (this.keepAliveApplications != null)
         {
             return;
         }
         YarnServerCommonProtos.NodeStatusProtoOrBuilder p    = viaProto ? proto : builder;
         IList <YarnProtos.ApplicationIdProto>           list = p.GetKeepAliveApplicationsList();
         this.keepAliveApplications = new AList <ApplicationId>();
         foreach (YarnProtos.ApplicationIdProto c in list)
         {
             this.keepAliveApplications.AddItem(ConvertFromProtoFormat(c));
         }
     }
 }
コード例 #4
0
 private void InitContainers()
 {
     lock (this)
     {
         if (this.containers != null)
         {
             return;
         }
         YarnServerCommonProtos.NodeStatusProtoOrBuilder p    = viaProto ? proto : builder;
         IList <YarnProtos.ContainerStatusProto>         list = p.GetContainersStatusesList();
         this.containers = new AList <ContainerStatus>();
         foreach (YarnProtos.ContainerStatusProto c in list)
         {
             this.containers.AddItem(ConvertFromProtoFormat(c));
         }
     }
 }
コード例 #5
0
 public override NodeId GetNodeId()
 {
     lock (this)
     {
         YarnServerCommonProtos.NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
         if (this.nodeId != null)
         {
             return(this.nodeId);
         }
         if (!p.HasNodeId())
         {
             return(null);
         }
         this.nodeId = ConvertFromProtoFormat(p.GetNodeId());
         return(this.nodeId);
     }
 }