Java 类org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.NamespaceInfoProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder()
      .setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion())
      .setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo)info))
      .setSoftwareVersion(info.getSoftwareVersion())
      .setCapabilities(info.getCapabilities())
      .build();
}
项目:hadoop    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:big-c    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder()
      .setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion())
      .setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo)info))
      .setSoftwareVersion(info.getSoftwareVersion())
      .setCapabilities(info.getCapabilities())
      .build();
}
项目:big-c    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder()
      .setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion())
      .setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo)info))
      .setSoftwareVersion(info.getSoftwareVersion()).build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:hadoop-plus    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder()
      .setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion())
      .setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo)info))
      .setSoftwareVersion(info.getSoftwareVersion()).build();
}
项目:hadoop-plus    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:FlexMap    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder()
      .setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion())
      .setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo)info))
      .setSoftwareVersion(info.getSoftwareVersion()).build();
}
项目:FlexMap    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:hops    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:hadoop-TCP    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder()
      .setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion())
      .setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo)info))
      .setSoftwareVersion(info.getSoftwareVersion()).build();
}
项目:hadoop-TCP    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:hardfs    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder()
      .setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion())
      .setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo)info))
      .setSoftwareVersion(info.getSoftwareVersion()).build();
}
项目:hardfs    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder()
      .setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion())
      .setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo)info))
      .setSoftwareVersion(info.getSoftwareVersion()).build();
}
项目:hadoop-on-lustre2    文件:TestPBHelper.java   
@Test
public void testConvertNamespaceInfo() {
  NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300);
  NamespaceInfoProto proto = PBHelper.convert(info);
  NamespaceInfo info2 = PBHelper.convert(proto);
  compare(info, info2); //Compare the StorageInfo
  assertEquals(info.getBlockPoolID(), info2.getBlockPoolID());
  assertEquals(info.getBuildVersion(), info2.getBuildVersion());
}
项目:hadoop    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion(), info.getCapabilities());
}
项目:big-c    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion(), info.getCapabilities());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion());
}
项目:hadoop-plus    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion());
}
项目:FlexMap    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion());
}
项目:hops    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion());
}
项目:hops    文件:PBHelper.java   
public static NamespaceInfoProto convert(NamespaceInfo info) {
  return NamespaceInfoProto.newBuilder().setBlockPoolID(info.getBlockPoolID())
      .setBuildVersion(info.getBuildVersion()).setUnused(0)
      .setStorageInfo(PBHelper.convert((StorageInfo) info))
      .setSoftwareVersion(info.getSoftwareVersion()).build();
}
项目:hadoop-TCP    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion());
}
项目:hardfs    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion());
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static NamespaceInfo convert(NamespaceInfoProto info) {
  StorageInfoProto storage = info.getStorageInfo();
  return new NamespaceInfo(storage.getNamespceID(), storage.getClusterID(),
      info.getBlockPoolID(), storage.getCTime(), info.getBuildVersion(),
      info.getSoftwareVersion());
}