Search in sources :

Example 1 with RpcDeleteFile

use of org.apache.crail.rpc.RpcDeleteFile in project incubator-crail by apache.

the class CoreDataStore method delete.

public Upcoming<CrailNode> delete(String path, boolean recursive) throws Exception {
    FileName name = new FileName(path);
    if (CrailConstants.DEBUG) {
        LOG.info("delete: name " + path + ", recursive " + recursive);
    }
    RpcFuture<RpcDeleteFile> fileRes = rpcConnection.removeFile(name, recursive);
    return new DeleteNodeFuture(this, path, recursive, fileRes);
}
Also used : RpcDeleteFile(org.apache.crail.rpc.RpcDeleteFile) FileName(org.apache.crail.metadata.FileName)

Aggregations

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