public override string GetDiagnostics() { lock (this) { YarnProtos.ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; return(p.GetDiagnostics()); } }
public override int GetExitStatus() { lock (this) { YarnProtos.ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; return(p.GetExitStatus()); } }
public override ContainerState GetState() { lock (this) { YarnProtos.ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; if (!p.HasState()) { return(null); } return(ConvertFromProtoFormat(p.GetState())); } }
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); } }