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