public interface DataStorage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RAW_CAPACITY_KEY |
static java.lang.String |
RAW_USED_KEY |
static java.lang.String |
USED_BYTES_KEY |
Modifier and Type | Method and Description |
---|---|
ElementDescriptor[] |
asCollection(java.lang.String pattern) |
ContainerDescriptor |
asContainer(ContainerDescriptor container) |
ContainerDescriptor |
asContainer(ContainerDescriptor parent,
ContainerDescriptor child) |
ContainerDescriptor |
asContainer(ContainerDescriptor parent,
java.lang.String child) |
ContainerDescriptor |
asContainer(java.lang.String name)
Created an entity handle for a container.
|
ContainerDescriptor |
asContainer(java.lang.String parent,
java.lang.String child) |
ElementDescriptor |
asElement(ContainerDescriptor parent,
ElementDescriptor child) |
ElementDescriptor |
asElement(ContainerDescriptor parent,
java.lang.String child) |
ElementDescriptor |
asElement(ElementDescriptor element) |
ElementDescriptor |
asElement(java.lang.String name)
Creates an entity handle for an object (no containment
relation) from a String
|
ElementDescriptor |
asElement(java.lang.String parent,
java.lang.String child) |
void |
close()
Clean-up and releasing of resources.
|
ContainerDescriptor |
getActiveContainer() |
java.util.Properties |
getConfiguration()
Provides configuration information about the storage itself.
|
java.util.Map<java.lang.String,java.lang.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(java.lang.String name) |
void |
setActiveContainer(ContainerDescriptor container) |
void |
updateConfiguration(java.util.Properties newConfiguration)
Provides a way to change configuration parameters
at the Data Storage level.
|
static final java.lang.String USED_BYTES_KEY
static final java.lang.String RAW_CAPACITY_KEY
static final java.lang.String RAW_USED_KEY
void init()
void close() throws java.io.IOException
java.io.IOException
java.util.Properties getConfiguration()
void updateConfiguration(java.util.Properties newConfiguration) throws DataStorageException
newConfiguration
- - the new configuration settingswhen
- configuration conflicts are detectedDataStorageException
java.util.Map<java.lang.String,java.lang.Object> getStatistics() throws java.io.IOException
java.io.IOException
ElementDescriptor asElement(java.lang.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(java.lang.String parent, java.lang.String child) throws DataStorageException
DataStorageException
ElementDescriptor asElement(ContainerDescriptor parent, java.lang.String child) throws DataStorageException
DataStorageException
ElementDescriptor asElement(ContainerDescriptor parent, ElementDescriptor child) throws DataStorageException
DataStorageException
boolean isContainer(java.lang.String name) throws DataStorageException
DataStorageException
ContainerDescriptor asContainer(java.lang.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(java.lang.String parent, java.lang.String child) throws DataStorageException
DataStorageException
ContainerDescriptor asContainer(ContainerDescriptor parent, java.lang.String child) throws DataStorageException
DataStorageException
ContainerDescriptor asContainer(ContainerDescriptor parent, ContainerDescriptor child) throws DataStorageException
DataStorageException
ElementDescriptor[] asCollection(java.lang.String pattern) throws DataStorageException
DataStorageException
void setActiveContainer(ContainerDescriptor container)
ContainerDescriptor getActiveContainer()
Copyright © 2007-2012 The Apache Software Foundation