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

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

Introduction

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

Prototype

public long getCTime() 

Source Link

Document

Creation time of the file system state.

Modified during upgrades.

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());
    vals.add(storageInfo.getBlockPoolId());
    Variables.updateVariable(new ArrayVariable(Variable.Finder.StorageInfo, vals));
}