Search in sources :

Example 1 with RpcCreateFile

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

the class CoreDataStore method create.

public Upcoming<CrailNode> create(String path, CrailNodeType type, CrailStorageClass storageClass, CrailLocationClass locationClass, boolean enumerable) throws Exception {
    FileName name = new FileName(path);
    if (CrailConstants.DEBUG) {
        LOG.info("createNode: name " + path + ", type " + type + ", storageAffinity " + storageClass + ", locationAffinity " + locationClass);
    }
    RpcFuture<RpcCreateFile> fileRes = rpcConnection.createFile(name, type, storageClass.value(), locationClass.value(), enumerable);
    return new CreateNodeFuture(this, path, type, fileRes);
}
Also used : RpcCreateFile(org.apache.crail.rpc.RpcCreateFile) FileName(org.apache.crail.metadata.FileName)

Aggregations

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