Search in sources :

Example 6 with ContainerLaunchContextProtoOrBuilder

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

the class ContainerLaunchContextPBImpl method initEnv.

private void initEnv() {
    if (this.environment != null) {
        return;
    }
    ContainerLaunchContextProtoOrBuilder p = viaProto ? proto : builder;
    List<StringStringMapProto> list = p.getEnvironmentList();
    this.environment = new HashMap<String, String>();
    for (StringStringMapProto c : list) {
        this.environment.put(c.getKey(), c.getValue());
    }
}
Also used : StringStringMapProto(org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto) ByteString(com.google.protobuf.ByteString) ContainerLaunchContextProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder)

Example 7 with ContainerLaunchContextProtoOrBuilder

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

the class ContainerLaunchContextPBImpl method getTokens.

@Override
public ByteBuffer getTokens() {
    ContainerLaunchContextProtoOrBuilder p = viaProto ? proto : builder;
    if (this.tokens != null) {
        return this.tokens;
    }
    if (!p.hasTokens()) {
        return null;
    }
    this.tokens = convertFromProtoFormat(p.getTokens());
    return this.tokens;
}
Also used : ContainerLaunchContextProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder)

Example 8 with ContainerLaunchContextProtoOrBuilder

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

the class ContainerLaunchContextPBImpl method getTokensConf.

@Override
public ByteBuffer getTokensConf() {
    ContainerLaunchContextProtoOrBuilder p = viaProto ? proto : builder;
    if (this.tokensConf != null) {
        return this.tokensConf;
    }
    if (!p.hasTokensConf()) {
        return null;
    }
    this.tokensConf = convertFromProtoFormat(p.getTokensConf());
    return this.tokensConf;
}
Also used : ContainerLaunchContextProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder)

Aggregations

ContainerLaunchContextProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder)8 ByteString (com.google.protobuf.ByteString)5 ByteBuffer (java.nio.ByteBuffer)1 ApplicationAccessType (org.apache.hadoop.yarn.api.records.ApplicationAccessType)1 LocalResource (org.apache.hadoop.yarn.api.records.LocalResource)1 ApplicationACLMapProto (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto)1 StringBytesMapProto (org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto)1 StringLocalResourceMapProto (org.apache.hadoop.yarn.proto.YarnProtos.StringLocalResourceMapProto)1 StringStringMapProto (org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto)1