Example usage for org.apache.hadoop.hdfs.server.common StorageInfo StorageInfo

List of usage examples for org.apache.hadoop.hdfs.server.common StorageInfo StorageInfo

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.server.common StorageInfo StorageInfo.

Prototype

public StorageInfo(int layoutV, int nsID, String cid, long cT, NodeType type) 

Source Link

Usage

From source file:io.hops.metadata.HdfsVariables.java

License:Apache License

public static StorageInfo getStorageInfo() throws StorageException, TransactionContextException {
    ArrayVariable var = (ArrayVariable) Variables.getVariable(Variable.Finder.StorageInfo);
    List<Object> vals = (List<Object>) var.getVarsValue();
    return new StorageInfo((Integer) vals.get(0), (Integer) vals.get(1), (String) vals.get(2),
            (Long) vals.get(3), (String) vals.get(4));
}