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, addFactories, buildGenericUri, checkClosing, close, exists, findFactory, getActiveFactories, getBackend, getBackend, getDefaultFactory, getFactory, getName, getRootUri, getScheme, open, registerAndSetAsDefaultFactory, registerFactory, resolve, setActiveFactories, setDefaultFactory, shouldValidateHeader, shouldValidateHeader
protected boolean exists(String path)
exists
in class RrdBackendFactory
path
- Storage pathpublic boolean canStore(URI uri)
canStore
in class RrdBackendFactory
public URI getCanonicalUri(URI uri)
RrdBackendFactory
getCanonicalUri
in class RrdBackendFactory
uri
- a valid URI for this backend.public URI getUri(String path)
RrdBackendFactory
getUri
in class RrdBackendFactory
path
- a path local to the current backend.public String getPath(URI uri)
RrdBackendFactory
getPath
in class RrdBackendFactory
uri
- The URI to parse.