|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.profileservice.repository.clustered.local.AbstractContentMetadataPersister
public abstract class AbstractContentMetadataPersister
Abstract base class for a ContentMetadataPersister
.
Constructor Summary | |
---|---|
AbstractContentMetadataPersister(File dir)
Create a new AbstractContentMetadataPersister. |
Method Summary | |
---|---|
protected File |
getContentMetadataDir()
Get the base directory where content metadata is to be stored. |
abstract File |
getMetadataPath(String storeName)
Get the file where metadata is stored. |
RepositoryContentMetadata |
load(String baseName)
Load content metadata from the persistent store. |
protected abstract RepositoryContentMetadata |
loadMetadata(File metadataStore)
Actually load the metadata |
protected abstract void |
saveMetadata(File metadataStore,
RepositoryContentMetadata metadata)
Actually store the given metadata. |
void |
store(String baseName,
RepositoryContentMetadata metadata)
Store content metadata to the persistent store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractContentMetadataPersister(File dir)
dir
- directory in which content metadata should be persisted.
Cannot be null
.Method Detail |
---|
public RepositoryContentMetadata load(String baseName)
ContentMetadataPersister
load
in interface ContentMetadataPersister
baseName
- name of the store. Cannot be null
public void store(String baseName, RepositoryContentMetadata metadata)
ContentMetadataPersister
store
in interface ContentMetadataPersister
baseName
- name of the store. Cannot be null
metadata
- the metadata. Cannot be null
public abstract File getMetadataPath(String storeName)
storeName
- the name of the store; identifies which metadata is desired
null
protected abstract RepositoryContentMetadata loadMetadata(File metadataStore) throws Exception
metadataStore
- file where metadata is stored
Exception
protected abstract void saveMetadata(File metadataStore, RepositoryContentMetadata metadata) throws Exception
metadataStore
- file where metadata should be stored. Cannot be null
metadata
- the metadata. Cannot be null
Exception
protected File getContentMetadataDir()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |