public abstract class RrdFileBackendFactory extends RrdBackendFactory
Every backend factory storing RRD data as ordinary files should inherit from it, some check are done in the code for instanceof.
cachingAllowed, DEFAULTFACTORY, name, scheme, validateHeader| Constructor and Description |
|---|
RrdFileBackendFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStore(URI uri) |
protected boolean |
exists(String path)
Determines if a storage with the given path already exists.
|
URI |
getCanonicalUri(URI uri)
Ensure that an URI is returned in a non-ambiguous way.
|
String |
getPath(URI uri)
Extract the local path from an URI.
|
URI |
getUri(String path)
Transform an path in a valid URI for this backend.
|
addActiveFactories, buildGenericUri, checkClosing, close, exists, findFactory, getActiveFactories, getBackend, getBackend, getDefaultFactory, getName, getRootUri, getScheme, open, resolve, setActiveFactories, shouldValidateHeader, shouldValidateHeaderpublic boolean canStore(URI uri)
canStore in class RrdBackendFactoryprotected boolean exists(String path)
Method to determine if a file with the given path already exists.
exists in class RrdBackendFactorypath - Storage pathpublic URI getCanonicalUri(URI uri)
RrdBackendFactorygetCanonicalUri in class RrdBackendFactoryuri - a valid URI for this backend.public String getPath(URI uri)
RrdBackendFactorygetPath in class RrdBackendFactoryuri - The URI to parse.public URI getUri(String path)
RrdBackendFactorygetUri in class RrdBackendFactorypath - a path local to the current backend.