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);
}
Aggregations