本文整理汇总了Java中org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils.convertFromProtoFormat方法的典型用法代码示例。如果您正苦于以下问题:Java ProtoUtils.convertFromProtoFormat方法的具体用法?Java ProtoUtils.convertFromProtoFormat怎么用?Java ProtoUtils.convertFromProtoFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils
的用法示例。
在下文中一共展示了ProtoUtils.convertFromProtoFormat方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initScope
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private void initScope() {
if (this.scope != null) {
return;
}
GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
this.scope = ProtoUtils.convertFromProtoFormat(p.getScope());
}
示例2: getAMCommand
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
@Override
public synchronized AMCommand getAMCommand() {
AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
if (!p.hasAMCommand()) {
return null;
}
return ProtoUtils.convertFromProtoFormat(p.getAMCommand());
}
示例3: initSystemCredentials
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private void initSystemCredentials() {
NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
List<SystemCredentialsForAppsProto> list = p.getSystemCredentialsForAppsList();
this.systemCredentials = new HashMap<ApplicationId, ByteBuffer> ();
for (SystemCredentialsForAppsProto c : list) {
ApplicationId appId = convertFromProtoFormat(c.getAppId());
ByteBuffer byteBuffer = ProtoUtils.convertFromProtoFormat(c.getCredentialsForApp());
this.systemCredentials.put(appId, byteBuffer);
}
}
示例4: getAppAttemptTokens
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
@Override
public Credentials getAppAttemptTokens() {
ApplicationAttemptStateDataProtoOrBuilder p = viaProto ? proto : builder;
if(appAttemptTokens != null) {
return convertCredentialsFromByteBuffer(appAttemptTokens);
}
if(!p.hasAppAttemptTokens()) {
return null;
}
this.appAttemptTokens = ProtoUtils.convertFromProtoFormat(
p.getAppAttemptTokens());
return convertCredentialsFromByteBuffer(appAttemptTokens);
}
示例5: getAppAttemptTokens
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
@Override
public ByteBuffer getAppAttemptTokens() {
ApplicationAttemptStateDataProtoOrBuilder p = viaProto ? proto : builder;
if(appAttemptTokens != null) {
return appAttemptTokens;
}
if(!p.hasAppAttemptTokens()) {
return null;
}
this.appAttemptTokens = ProtoUtils.convertFromProtoFormat(
p.getAppAttemptTokens());
return appAttemptTokens;
}
示例6: getTruststore
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
@Override
public ByteBuffer getTruststore() {
YarnServerCommonServiceProtos.MaterializeCryptoKeysRequestProtoOrBuilder p =
viaProto ? proto : builder;
if (!p.hasTruststore()) {
return null;
}
return ProtoUtils.convertFromProtoFormat(p.getTruststore());
}
示例7: getKeystore
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
@Override
public ByteBuffer getKeystore() {
YarnServerCommonServiceProtos.MaterializeCryptoKeysRequestProtoOrBuilder p =
viaProto ? proto : builder;
if (!p.hasKeystore()) {
return null;
}
return ProtoUtils.convertFromProtoFormat(p.getKeystore());
}
示例8: convertFromProtoFormat
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private FinalApplicationStatus convertFromProtoFormat(FinalApplicationStatusProto s) {
return ProtoUtils.convertFromProtoFormat(s);
}
示例9: convertFromProtoFormat
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
protected final ByteBuffer convertFromProtoFormat(ByteString byteString) {
return ProtoUtils.convertFromProtoFormat(byteString);
}
示例10: convertFromProtoFormat
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private ContainerState convertFromProtoFormat(
ContainerStateProto containerState) {
return ProtoUtils.convertFromProtoFormat(containerState);
}
示例11: convertFromProtoFormat
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private FinalApplicationStatus convertFromProtoFormat(
FinalApplicationStatusProto finalApplicationStatus) {
return ProtoUtils.convertFromProtoFormat(finalApplicationStatus);
}
示例12: convertFromProtoFormat
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private ContainerType convertFromProtoFormat(
ContainerTypeProto containerType) {
return ProtoUtils.convertFromProtoFormat(containerType);
}
示例13: convertFromProtoFormat
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private YarnApplicationAttemptState convertFromProtoFormat(
YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
示例14: convertFromProtoFormat
import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private YarnApplicationState convertFromProtoFormat(
YarnApplicationStateProto yarnApplicationState) {
return ProtoUtils.convertFromProtoFormat(yarnApplicationState);
}