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

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

Introduction

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

Prototype

public OldSnapshotNameParam(final String str) 

Source Link

Usage

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

License:Apache License

@Override
public void renameSnapshot(final Path path, final String snapshotOldName, final String snapshotNewName)
        throws IOException {
    statistics.incrementWriteOps(1);/*from   w ww.  j a v a2  s .c  o  m*/
    final HttpOpParam.Op op = PutOpParam.Op.RENAMESNAPSHOT;
    new FsPathRunner(op, path, new OldSnapshotNameParam(snapshotOldName),
            new SnapshotNameParam(snapshotNewName)).run();
}