Example usage for org.apache.hadoop.hdfs.web.resources ModificationTimeParam ModificationTimeParam

List of usage examples for org.apache.hadoop.hdfs.web.resources ModificationTimeParam ModificationTimeParam

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.web.resources ModificationTimeParam ModificationTimeParam.

Prototype

public ModificationTimeParam(final String str) 

Source Link

Document

Constructor.

Usage

From source file:com.bigstep.datalake.DLFileSystem.java

License:Apache License

@Override
public void setTimes(final Path p, final long mtime, final long atime) throws IOException {
    statistics.incrementWriteOps(1);/*from  w ww  .j a  v  a2s.c o m*/
    final HttpOpParam.Op op = PutOpParam.Op.SETTIMES;
    new FsPathRunner(op, p, new ModificationTimeParam(mtime), new AccessTimeParam(atime)).run();
}