public override string GetNMVersion() { YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder; if (!p.HasNmVersion()) { return(string.Empty); } return(p.GetNmVersion()); }
public override int GetHttpPort() { YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder; if (!p.HasHttpPort()) { return(0); } return(p.GetHttpPort()); }
public override NodeId GetNodeId() { YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.nodeId != null) { return(this.nodeId); } if (!p.HasNodeId()) { return(null); } this.nodeId = ConvertFromProtoFormat(p.GetNodeId()); return(this.nodeId); }
public override Resource GetResource() { YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.resource != null) { return(this.resource); } if (!p.HasResource()) { return(null); } this.resource = ConvertFromProtoFormat(p.GetResource()); return(this.resource); }
private void InitRunningApplications() { if (this.runningApplications != null) { return; } YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder; IList <YarnProtos.ApplicationIdProto> list = p.GetRunningApplicationsList(); this.runningApplications = new AList <ApplicationId>(); foreach (YarnProtos.ApplicationIdProto c in list) { this.runningApplications.AddItem(ConvertFromProtoFormat(c)); } }
private void InitContainerRecoveryReports() { if (this.containerStatuses != null) { return; } YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder; IList <YarnServerCommonServiceProtos.NMContainerStatusProto> list = p.GetContainerStatusesList (); this.containerStatuses = new AList <NMContainerStatus>(); foreach (YarnServerCommonServiceProtos.NMContainerStatusProto c in list) { this.containerStatuses.AddItem(ConvertFromProtoFormat(c)); } }