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

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

Introduction

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

Prototype

public AccessTimeParam(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);// w  w w.j  a va  2  s .c  o  m
    final HttpOpParam.Op op = PutOpParam.Op.SETTIMES;
    new FsPathRunner(op, p, new ModificationTimeParam(mtime), new AccessTimeParam(atime)).run();
}