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

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

Introduction

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

Prototype

public int getNamespaceID() 

Source Link

Document

Namespace id of the file system.

Assigned to the file system at formatting and never changes after that.

Usage

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

License:Apache License

public static void setStorageInfo(StorageInfo storageInfo)
        throws StorageException, TransactionContextException {
    List<Object> vals = new ArrayList<Object>();
    vals.add(storageInfo.getLayoutVersion());
    vals.add(storageInfo.getNamespaceID());
    vals.add(storageInfo.getClusterID());
    vals.add(storageInfo.getCTime());// w  w  w.  j a  v a2 s .c  om
    vals.add(storageInfo.getBlockPoolId());
    Variables.updateVariable(new ArrayVariable(Variable.Finder.StorageInfo, vals));
}