Search in sources :

Example 1 with RpcRenameFile

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);
}
Also used : FileName(org.apache.crail.metadata.FileName) RpcRenameFile(org.apache.crail.rpc.RpcRenameFile)

Aggregations

FileName (org.apache.crail.metadata.FileName)1 RpcRenameFile (org.apache.crail.rpc.RpcRenameFile)1