Ejemplo n.º 1
0
 public override ContainerState GetContainerState()
 {
     YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder p = viaProto ? proto
                          : builder;
     if (!p.HasContainerState())
     {
         return(null);
     }
     return(ConvertFromProtoFormat(p.GetContainerState()));
 }
Ejemplo n.º 2
0
 public override string GetDiagnostics()
 {
     YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder p = viaProto ? proto
                          : builder;
     if (!p.HasDiagnostics())
     {
         return(null);
     }
     return(p.GetDiagnostics());
 }
Ejemplo n.º 3
0
 public override ContainerId GetContainerId()
 {
     if (this.containerId != null)
     {
         return(this.containerId);
     }
     YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder p = viaProto ? proto
                          : builder;
     if (!p.HasContainerId())
     {
         return(null);
     }
     this.containerId = ConvertFromProtoFormat(p.GetContainerId());
     return(this.containerId);
 }
Ejemplo n.º 4
0
 public override Resource GetAllocatedResource()
 {
     if (this.resource != null)
     {
         return(this.resource);
     }
     YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder p = viaProto ? proto
                          : builder;
     if (!p.HasResource())
     {
         return(null);
     }
     this.resource = ConvertFromProtoFormat(p.GetResource());
     return(this.resource);
 }
Ejemplo n.º 5
0
 public override Priority GetPriority()
 {
     YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder p = viaProto ? proto
                          : builder;
     if (this.priority != null)
     {
         return(this.priority);
     }
     if (!p.HasPriority())
     {
         return(null);
     }
     this.priority = ConvertFromProtoFormat(p.GetPriority());
     return(this.priority);
 }
Ejemplo n.º 6
0
 public override long GetCreationTime()
 {
     YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder p = viaProto ? proto
                          : builder;
     return(p.GetCreationTime());
 }
Ejemplo n.º 7
0
 public override int GetContainerExitStatus()
 {
     YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder p = viaProto ? proto
                          : builder;
     return(p.GetContainerExitStatus());
 }