Search in sources :

Example 1 with ApplicationIdProto

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto in project hadoop by apache.

the class NodeHeartbeatResponsePBImpl method initApplicationsToCleanup.

private void initApplicationsToCleanup() {
    if (this.applicationsToCleanup != null) {
        return;
    }
    NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ApplicationIdProto> list = p.getApplicationsToCleanupList();
    this.applicationsToCleanup = new ArrayList<ApplicationId>();
    for (ApplicationIdProto c : list) {
        this.applicationsToCleanup.add(convertFromProtoFormat(c));
    }
}
Also used : NodeHeartbeatResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder) ApplicationIdProto(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto) ApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId)

Example 2 with ApplicationIdProto

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto in project hadoop by apache.

the class RegisterNodeManagerRequestPBImpl method initRunningApplications.

private synchronized void initRunningApplications() {
    if (this.runningApplications != null) {
        return;
    }
    RegisterNodeManagerRequestProtoOrBuilder p = viaProto ? proto : builder;
    List<ApplicationIdProto> list = p.getRunningApplicationsList();
    this.runningApplications = new ArrayList<ApplicationId>();
    for (ApplicationIdProto c : list) {
        this.runningApplications.add(convertFromProtoFormat(c));
    }
}
Also used : ApplicationIdProto(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto) RegisterNodeManagerRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtoOrBuilder) ApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId)

Example 3 with ApplicationIdProto

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto in project hadoop by apache.

the class NodeStatusPBImpl method initKeepAliveApplications.

private synchronized void initKeepAliveApplications() {
    if (this.keepAliveApplications != null) {
        return;
    }
    NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
    List<ApplicationIdProto> list = p.getKeepAliveApplicationsList();
    this.keepAliveApplications = new ArrayList<ApplicationId>();
    for (ApplicationIdProto c : list) {
        this.keepAliveApplications.add(convertFromProtoFormat(c));
    }
}
Also used : NodeStatusProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder) ApplicationIdProto(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto) ApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId)

Aggregations

ApplicationId (org.apache.hadoop.yarn.api.records.ApplicationId)3 ApplicationIdProto (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto)3 NodeStatusProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder)1 NodeHeartbeatResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder)1 RegisterNodeManagerRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtoOrBuilder)1