use of org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DatanodeStorageProto in project hadoop by apache.
the class TestPBHelper method TestConvertDatanodeStorage.
@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);
}
Aggregations