public interface DataStorage
Modifier and Type | Field and Description |
---|---|
static String |
RAW_CAPACITY_KEY |
static String |
RAW_USED_KEY |
static String |
USED_BYTES_KEY |
Modifier and Type | Method and Description |
---|---|
ElementDescriptor[] |
asCollection(String pattern) |
ContainerDescriptor |
asContainer(ContainerDescriptor container) |
ContainerDescriptor |
asContainer(ContainerDescriptor parent,
ContainerDescriptor child) |
ContainerDescriptor |
asContainer(ContainerDescriptor parent,
String child) |
ContainerDescriptor |
asContainer(String name)
Created an entity handle for a container.
|
ContainerDescriptor |
asContainer(String parent,
String child) |
ElementDescriptor |
asElement(ContainerDescriptor parent,
ElementDescriptor child) |
ElementDescriptor |
asElement(ContainerDescriptor parent,
String child) |
ElementDescriptor |
asElement(ElementDescriptor element) |
ElementDescriptor |
asElement(String name)
Creates an entity handle for an object (no containment
relation) from a String
|
ElementDescriptor |
asElement(String parent,
String child) |
void |
close()
Clean-up and releasing of resources.
|
ContainerDescriptor |
getActiveContainer() |
Properties |
getConfiguration()
Provides configuration information about the storage itself.
|
Map<String,Object> |
getStatistics()
Provides statistics on the Storage: capacity values, how much
storage is in use...
|
void |
init()
Place holder for possible initialization activities.
|
boolean |
isContainer(String name) |
void |
setActiveContainer(ContainerDescriptor container) |
void |
updateConfiguration(Properties newConfiguration)
Provides a way to change configuration parameters
at the Data Storage level.
|
static final String USED_BYTES_KEY
static final String RAW_CAPACITY_KEY
static final String RAW_USED_KEY
void init()
void close() throws IOException
IOException
Properties getConfiguration()
void updateConfiguration(Properties newConfiguration) throws DataStorageException
newConfiguration
- - the new configuration settingswhen
- configuration conflicts are detectedDataStorageException
Map<String,Object> getStatistics() throws IOException
IOException
ElementDescriptor asElement(String name) throws DataStorageException
name
- of the objectDataStorageException
- if name does not conform to naming
convention enforced by the Data Storage.ElementDescriptor asElement(ElementDescriptor element) throws DataStorageException
DataStorageException
ElementDescriptor asElement(String parent, String child) throws DataStorageException
DataStorageException
ElementDescriptor asElement(ContainerDescriptor parent, String child) throws DataStorageException
DataStorageException
ElementDescriptor asElement(ContainerDescriptor parent, ElementDescriptor child) throws DataStorageException
DataStorageException
boolean isContainer(String name) throws DataStorageException
DataStorageException
ContainerDescriptor asContainer(String name) throws DataStorageException
name
- of the containerDataStorageException
- if name does not conform to naming
convention enforced by the Data Storage.ContainerDescriptor asContainer(ContainerDescriptor container) throws DataStorageException
DataStorageException
ContainerDescriptor asContainer(String parent, String child) throws DataStorageException
DataStorageException
ContainerDescriptor asContainer(ContainerDescriptor parent, String child) throws DataStorageException
DataStorageException
ContainerDescriptor asContainer(ContainerDescriptor parent, ContainerDescriptor child) throws DataStorageException
DataStorageException
ElementDescriptor[] asCollection(String pattern) throws DataStorageException
DataStorageException
void setActiveContainer(ContainerDescriptor container)
ContainerDescriptor getActiveContainer()
Copyright © 2007-2017 The Apache Software Foundation