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

项目:hadoop    文件:TestPBHelper.java   
@Test
public void TestConvertDatanodeStorage() {
  DatanodeStorage dns1 = new DatanodeStorage(
      "id1", DatanodeStorage.State.NORMAL, StorageType.SSD);

  DatanodeStorageProto proto = PBHelper.convert(dns1);
  DatanodeStorage dns2 = PBHelper.convert(proto);
  compare(dns1, dns2);
}
项目:aliyun-oss-hadoop-fs    文件:TestPBHelper.java   
@Test
public void TestConvertDatanodeStorage() {
  DatanodeStorage dns1 = new DatanodeStorage(
      "id1", DatanodeStorage.State.NORMAL, StorageType.SSD);

  DatanodeStorageProto proto = PBHelperClient.convert(dns1);
  DatanodeStorage dns2 = PBHelperClient.convert(proto);
  compare(dns1, dns2);
}
项目:big-c    文件:TestPBHelper.java   
@Test
public void TestConvertDatanodeStorage() {
  DatanodeStorage dns1 = new DatanodeStorage(
      "id1", DatanodeStorage.State.NORMAL, StorageType.SSD);

  DatanodeStorageProto proto = PBHelper.convert(dns1);
  DatanodeStorage dns2 = PBHelper.convert(proto);
  compare(dns1, dns2);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestPBHelper.java   
@Test
public void TestConvertDatanodeStorage() {
  DatanodeStorage dns1 = new DatanodeStorage(
      "id1", DatanodeStorage.State.NORMAL, StorageType.SSD);

  DatanodeStorageProto proto = PBHelper.convert(dns1);
  DatanodeStorage dns2 = PBHelper.convert(proto);
  compare(dns1, dns2);
}
项目:FlexMap    文件:TestPBHelper.java   
@Test
public void TestConvertDatanodeStorage() {
  DatanodeStorage dns1 = new DatanodeStorage(
      "id1", DatanodeStorage.State.NORMAL, StorageType.SSD);

  DatanodeStorageProto proto = PBHelper.convert(dns1);
  DatanodeStorage dns2 = PBHelper.convert(proto);
  compare(dns1, dns2);
}
项目:hadoop    文件:PBHelper.java   
public static DatanodeStorageProto convert(DatanodeStorage s) {
  return DatanodeStorageProto.newBuilder()
      .setState(PBHelper.convertState(s.getState()))
      .setStorageType(PBHelper.convertStorageType(s.getStorageType()))
      .setStorageUuid(s.getStorageID()).build();
}
项目:hadoop    文件:PBHelper.java   
public static DatanodeStorage convert(DatanodeStorageProto s) {
  return new DatanodeStorage(s.getStorageUuid(),
                             PBHelper.convertState(s.getState()),
                             PBHelper.convertStorageType(s.getStorageType()));
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static DatanodeStorage convert(DatanodeStorageProto s) {
  return new DatanodeStorage(s.getStorageUuid(),
      convertState(s.getState()), convertStorageType(s.getStorageType()));
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static DatanodeStorageProto convert(DatanodeStorage s) {
  return DatanodeStorageProto.newBuilder()
      .setState(convertState(s.getState()))
      .setStorageType(convertStorageType(s.getStorageType()))
      .setStorageUuid(s.getStorageID()).build();
}
项目:big-c    文件:PBHelper.java   
public static DatanodeStorageProto convert(DatanodeStorage s) {
  return DatanodeStorageProto.newBuilder()
      .setState(PBHelper.convertState(s.getState()))
      .setStorageType(PBHelper.convertStorageType(s.getStorageType()))
      .setStorageUuid(s.getStorageID()).build();
}
项目:big-c    文件:PBHelper.java   
public static DatanodeStorage convert(DatanodeStorageProto s) {
  return new DatanodeStorage(s.getStorageUuid(),
                             PBHelper.convertState(s.getState()),
                             PBHelper.convertStorageType(s.getStorageType()));
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static DatanodeStorageProto convert(DatanodeStorage s) {
  return DatanodeStorageProto.newBuilder()
      .setState(PBHelper.convertState(s.getState()))
      .setStorageType(PBHelper.convertStorageType(s.getStorageType()))
      .setStorageUuid(s.getStorageID()).build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static DatanodeStorage convert(DatanodeStorageProto s) {
  return new DatanodeStorage(s.getStorageUuid(),
                             PBHelper.convertState(s.getState()),
                             PBHelper.convertStorageType(s.getStorageType()));
}
项目:FlexMap    文件:PBHelper.java   
public static DatanodeStorageProto convert(DatanodeStorage s) {
  return DatanodeStorageProto.newBuilder()
      .setState(PBHelper.convertState(s.getState()))
      .setStorageType(PBHelper.convertStorageType(s.getStorageType()))
      .setStorageUuid(s.getStorageID()).build();
}
项目:FlexMap    文件:PBHelper.java   
public static DatanodeStorage convert(DatanodeStorageProto s) {
  return new DatanodeStorage(s.getStorageUuid(),
                             PBHelper.convertState(s.getState()),
                             PBHelper.convertStorageType(s.getStorageType()));
}