コード例 #1
0
 public override string GetDiagnostics()
 {
     lock (this)
     {
         YarnProtos.ContainerStatusProtoOrBuilder p = viaProto ? proto : builder;
         return(p.GetDiagnostics());
     }
 }
コード例 #2
0
 public override int GetExitStatus()
 {
     lock (this)
     {
         YarnProtos.ContainerStatusProtoOrBuilder p = viaProto ? proto : builder;
         return(p.GetExitStatus());
     }
 }
コード例 #3
0
 public override ContainerState GetState()
 {
     lock (this)
     {
         YarnProtos.ContainerStatusProtoOrBuilder p = viaProto ? proto : builder;
         if (!p.HasState())
         {
             return(null);
         }
         return(ConvertFromProtoFormat(p.GetState()));
     }
 }
コード例 #4
0
 public override ContainerId GetContainerId()
 {
     lock (this)
     {
         YarnProtos.ContainerStatusProtoOrBuilder p = viaProto ? proto : builder;
         if (this.containerId != null)
         {
             return(this.containerId);
         }
         if (!p.HasContainerId())
         {
             return(null);
         }
         this.containerId = ConvertFromProtoFormat(p.GetContainerId());
         return(this.containerId);
     }
 }