/** * Creates RrdBackend object for the given storage path. * * @param path Storage path * @param readOnly True, if the storage should be accessed in read/only mode. * False otherwise. * @return Backend object which handles all I/O operations for the given storage path * @throws java.io.IOException Thrown in case of I/O error. */ RrdBackend getBackend(RrdDb rrdDb, String path, boolean readOnly) throws IOException { checkClosing(); RrdBackend backend = open(path, readOnly); backend.done(this, new ClosingReference(rrdDb, backend, refQueue)); return backend; }
/** * Creates RrdBackend object for the given storage path. * @param rrdDb * * @param uri Storage uri * @param readOnly True, if the storage should be accessed in read/only mode. * False otherwise. * @return Backend object which handles all I/O operations for the given storage path * @throws java.io.IOException Thrown in case of I/O error. */ RrdBackend getBackend(RrdDb rrdDb, URI uri, boolean readOnly) throws IOException { checkClosing(); RrdBackend backend = open(getPath(uri), readOnly); backend.done(this, new ClosingReference(rrdDb, backend, refQueue)); return backend; }