|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.dao.castor.AbstractCastorConfigDao<K,V>
K - Castor classV - Configuration object that is stored in memory (might be the same
as the Castor class or could be a different class)public abstract class AbstractCastorConfigDao<K,V>
Abstract AbstractCastorConfigDao class.
| Nested Class Summary | |
|---|---|
class |
AbstractCastorConfigDao.CastorReloadCallback
|
| Constructor Summary | |
|---|---|
AbstractCastorConfigDao(Class<K> entityClass,
String description)
Constructor for AbstractCastorConfigDao. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet |
protected String |
createLoadedLogMessage(V translatedConfig,
long diffTime)
createLoadedLogMessage |
org.springframework.core.io.Resource |
getConfigResource()
getConfigResource |
protected FileReloadContainer<V> |
getContainer()
getContainer |
String |
getDescription()
getDescription |
Long |
getReloadCheckInterval()
getReloadCheckInterval |
protected V |
loadConfig(org.springframework.core.io.Resource resource)
loadConfig |
protected ThreadCategory |
log()
log |
void |
setConfigResource(org.springframework.core.io.Resource configResource)
setConfigResource |
void |
setReloadCheckInterval(Long reloadCheckInterval)
setReloadCheckInterval |
abstract V |
translateConfig(K castorConfig)
translateConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCastorConfigDao(Class<K> entityClass,
String description)
Constructor for AbstractCastorConfigDao.
K - a K object.V - a V object.entityClass - a Class object.description - a String object.| Method Detail |
|---|
public abstract V translateConfig(K castorConfig)
translateConfig
castorConfig - a K object.
protected ThreadCategory log()
log
ThreadCategory object.protected V loadConfig(org.springframework.core.io.Resource resource)
loadConfig
resource - a Resource object.
protected String createLoadedLogMessage(V translatedConfig,
long diffTime)
createLoadedLogMessage
translatedConfig - a V object.diffTime - a long.
String object.public void afterPropertiesSet()
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic org.springframework.core.io.Resource getConfigResource()
getConfigResource
Resource object.public void setConfigResource(org.springframework.core.io.Resource configResource)
setConfigResource
configResource - a Resource object.protected FileReloadContainer<V> getContainer()
getContainer
FileReloadContainer object.public Long getReloadCheckInterval()
getReloadCheckInterval
Long object.public void setReloadCheckInterval(Long reloadCheckInterval)
setReloadCheckInterval
reloadCheckInterval - a Long object.public String getDescription()
getDescription
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||