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

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

Introduction

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

Prototype

public int getLayoutVersion() 

Source Link

Document

Layout version of the storage data.

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());/*from   w w  w  .j ava 2s. c o  m*/
    vals.add(storageInfo.getBlockPoolId());
    Variables.updateVariable(new ArrayVariable(Variable.Finder.StorageInfo, vals));
}