当前位置: 首页>>代码示例>>Java>>正文


Java ProtoUtils.convertFromProtoFormat方法代码示例

本文整理汇总了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());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:GetApplicationsRequestPBImpl.java

示例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());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:AllocateResponsePBImpl.java

示例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);
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:NodeHeartbeatResponsePBImpl.java

示例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);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:ApplicationAttemptStateDataPBImpl.java

示例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;
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:14,代码来源:ApplicationAttemptStateDataPBImpl.java

示例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());
}
 
开发者ID:hopshadoop,项目名称:hops,代码行数:12,代码来源:MaterializeCryptoKeysRequestPBImpl.java

示例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());
}
 
开发者ID:hopshadoop,项目名称:hops,代码行数:12,代码来源:MaterializeCryptoKeysRequestPBImpl.java

示例8: convertFromProtoFormat

import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private FinalApplicationStatus convertFromProtoFormat(FinalApplicationStatusProto s) {
  return ProtoUtils.convertFromProtoFormat(s);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:4,代码来源:FinishApplicationMasterRequestPBImpl.java

示例9: convertFromProtoFormat

import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
protected final ByteBuffer convertFromProtoFormat(ByteString byteString) {
  return ProtoUtils.convertFromProtoFormat(byteString);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:4,代码来源:StartContainersResponsePBImpl.java

示例10: convertFromProtoFormat

import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private ContainerState convertFromProtoFormat(
    ContainerStateProto containerState) {
  return ProtoUtils.convertFromProtoFormat(containerState);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:5,代码来源:NMContainerStatusPBImpl.java

示例11: convertFromProtoFormat

import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private FinalApplicationStatus convertFromProtoFormat(
    FinalApplicationStatusProto finalApplicationStatus) {
  return ProtoUtils.convertFromProtoFormat(finalApplicationStatus);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:5,代码来源:ApplicationFinishDataPBImpl.java

示例12: convertFromProtoFormat

import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private ContainerType convertFromProtoFormat(
    ContainerTypeProto containerType) {
  return ProtoUtils.convertFromProtoFormat(containerType);
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:5,代码来源:ContainerTokenIdentifier.java

示例13: convertFromProtoFormat

import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
开发者ID:yncxcw,项目名称:big-c,代码行数:5,代码来源:ApplicationAttemptFinishDataPBImpl.java

示例14: convertFromProtoFormat

import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils; //导入方法依赖的package包/类
private YarnApplicationState convertFromProtoFormat(
    YarnApplicationStateProto yarnApplicationState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationState);
}
 
开发者ID:yncxcw,项目名称:big-c,代码行数:5,代码来源:ApplicationFinishDataPBImpl.java


注:本文中的org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils.convertFromProtoFormat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。