Java 类org.apache.hadoop.hdfs.protocol.proto.JournalProtocolProtos.JournalInfoProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:hadoop    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:aliyun-oss-hadoop-fs    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}
项目:big-c    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:big-c    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}
项目:hadoop-plus    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:hadoop-plus    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}
项目:FlexMap    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:FlexMap    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}
项目:hadoop-TCP    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:hadoop-TCP    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}
项目:hardfs    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:hardfs    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static JournalInfo convert(JournalInfoProto info) {
  int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
  int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
  return new JournalInfo(lv, info.getClusterID(), nsID);
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
/**
 * Method used for converting {@link JournalInfoProto} sent from Namenode
 * to Journal receivers to {@link NamenodeRegistration}.
 */
public static JournalInfoProto convert(JournalInfo j) {
  return JournalInfoProto.newBuilder().setClusterID(j.getClusterId())
      .setLayoutVersion(j.getLayoutVersion())
      .setNamespaceID(j.getNamespaceId()).build();
}