|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttigase.conf.ConfigurationCache
tigase.conf.ConfigSQLRepository
public class ConfigSQLRepository
Created: Dec 15, 2009 10:44:00 PM
Field Summary | |
---|---|
static String |
CONFIG_REPO_URI_INIT_KEY
|
static String |
CONFIG_REPO_URI_PROP_KEY
|
Fields inherited from interface tigase.conf.ConfigRepositoryIfc |
---|
RELOAD_DELAY, RESOURCE_URI |
Fields inherited from interface tigase.db.ComponentRepository |
---|
COMP_REPO_BIND |
Constructor Summary | |
---|---|
ConfigSQLRepository()
|
Method Summary | |
---|---|
void |
addItem(String compName,
ConfigItem item)
Method description |
Collection<ConfigItem> |
allItems()
Method description |
String[] |
getCompNames()
Method description |
ConfigItem |
getItem(String compName,
String node,
String key)
Method description |
Set<ConfigItem> |
getItemsForComponent(String compName)
Method description |
String[] |
getKeys(String compName,
String node)
Method description |
void |
init(Map<String,Object> params)
Method description |
void |
removeItem(String compName,
ConfigItem item)
Method description |
int |
size()
Method description |
Methods inherited from class tigase.conf.ConfigurationCache |
---|
addItem, addItem, contains, get, getDefaults, getDefHostname, getInitProperties, getItem, getItemInstance, getProperties, iterator, putProperties, reload, remove, removeItem, set, setDefHostname, setProperties, store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_REPO_URI_PROP_KEY
public static final String CONFIG_REPO_URI_INIT_KEY
Constructor Detail |
---|
public ConfigSQLRepository()
Method Detail |
---|
public void init(Map<String,Object> params) throws ConfigurationException
ConfigurationCache
init
in interface ConfigRepositoryIfc
init
in class ConfigurationCache
ConfigurationException
public Set<ConfigItem> getItemsForComponent(String compName)
ConfigurationCache
getItemsForComponent
in class ConfigurationCache
public ConfigItem getItem(String compName, String node, String key)
ConfigurationCache
getItem
in class ConfigurationCache
public void addItem(String compName, ConfigItem item)
ConfigurationCache
addItem
in class ConfigurationCache
public void removeItem(String compName, ConfigItem item)
ConfigurationCache
removeItem
in class ConfigurationCache
public String[] getCompNames()
ConfigurationCache
getCompNames
in interface ConfigRepositoryIfc
getCompNames
in class ConfigurationCache
public String[] getKeys(String compName, String node)
ConfigurationCache
getKeys
in interface ConfigRepositoryIfc
getKeys
in class ConfigurationCache
public int size()
ConfigurationCache
size
in interface ComponentRepository<ConfigItem>
size
in class ConfigurationCache
int
value with number of items in the
repository.public Collection<ConfigItem> allItems() throws TigaseDBException
ConfigurationCache
allItems
in interface ComponentRepository<ConfigItem>
allItems
in class ConfigurationCache
TigaseDBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |