use of org.apache.crail.rpc.RpcRenameFile in project incubator-crail by apache.
the class CoreDataStore method rename.
public Upcoming<CrailNode> rename(String src, String dst) throws Exception {
FileName srcPath = new FileName(src);
FileName dstPath = new FileName(dst);
if (CrailConstants.DEBUG) {
LOG.info("rename: srcname " + src + ", dstname " + dst);
}
RpcFuture<RpcRenameFile> renameRes = rpcConnection.renameFile(srcPath, dstPath);
return new RenameNodeFuture(this, src, dst, renameRes);
}
Aggregations