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());
}
}
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;
}
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;
}
Aggregations