public class XMLFileBasedKFMetaStore extends Object implements KFMetaStore
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_STORE_LOCATION
The default location for the XML files
|
| Constructor and Description |
|---|
XMLFileBasedKFMetaStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
createStore(String storeName)
Create a named store
|
Object |
getEntry(String storeName,
String name,
Class<?> clazz)
Get a named entry from the store
|
Set<String> |
listMetaStoreEntries(String storeName)
Get a list of all entries in a named store
|
Set<String> |
listMetaStoreEntries(String storeName,
String prefix)
Get a list of all named entries starting with the given prefix
|
Set<String> |
listMetaStores()
Get a list of all named meta stores
|
void |
storeEntry(String storeName,
String name,
Object toStore)
Store a named entry
|
public static final String DEFAULT_STORE_LOCATION
public Set<String> listMetaStores() throws IOException
KFMetaStorelistMetaStores in interface KFMetaStoreIOException - if a problem occurspublic Set<String> listMetaStoreEntries(String storeName) throws IOException
KFMetaStorelistMetaStoreEntries in interface KFMetaStorestoreName - the name of the store to get entries forIOException - if a problem occurspublic Set<String> listMetaStoreEntries(String storeName, String prefix) throws IOException
KFMetaStorelistMetaStoreEntries in interface KFMetaStorestoreName - the name of the store to get entries forprefix - the prefix with which to search for entriesIOException - if a problem occurspublic Object getEntry(String storeName, String name, Class<?> clazz) throws IOException
KFMetaStoregetEntry in interface KFMetaStorestoreName - the name of the store to usename - the full name of the entry to retrieveclazz - the expected class of the entry when deserializedIOException - if the deserialized entry does not match the expected
classpublic void createStore(String storeName) throws IOException
KFMetaStorecreateStore in interface KFMetaStorestoreName - the name of the store to createIOException - if a problem occurspublic void storeEntry(String storeName, String name, Object toStore) throws IOException
KFMetaStorestoreEntry in interface KFMetaStorestoreName - the name of the store to usename - the full name of the entry to storetoStore - a beans compliant object to storeIOException - if a problem occursCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.