Package org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos

Examples of org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto


  @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);
  }
View Full Code Here


  @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);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeStorageProto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.