|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.dao.castor.AbstractCastorConfigDao<AckdConfiguration,AckdConfiguration>
org.opennms.netmgt.dao.castor.DefaultAckdConfigurationDao
public class DefaultAckdConfigurationDao
Default implementation of AckdConfiguration containing utility methods for manipulating
the Ackd and AckdReaders.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao |
|---|
AbstractCastorConfigDao.CastorReloadCallback |
| Constructor Summary | |
|---|---|
DefaultAckdConfigurationDao()
Constructor for DefaultAckdConfigurationDao. |
|
| Method Summary | |
|---|---|
Boolean |
acknowledgmentMatch(List<String> messageText)
Utility method for determining if a reply email should acknowledge an acknowledgable |
Boolean |
clearMatch(List<String> messageText)
Utility method for determining if a reply email should clear an acknowledgable |
Boolean |
escalationMatch(List<String> messageText)
Utility method for determining if a reply email should escalate an acknowledgable |
AckdConfiguration |
getConfig()
getConfig |
int |
getEnabledReaderCount()
getEnabledReaderCount |
List<Parameter> |
getParametersForReader(String name)
getParametersForReader |
Reader |
getReader(String readerName)
Utility method to retrieve a readers configuration by name. |
ReaderSchedule |
getReaderSchedule(String readerName)
Utility method to retrieve a schedule defined for a reader. |
boolean |
isReaderEnabled(String readerName)
Utility method that determines if a named reader's configuration is enabled. |
void |
reloadConfiguration()
The exception boils up from the container class The container class should indicate this. |
AckdConfiguration |
translateConfig(AckdConfiguration castorConfig)
translateConfig |
Boolean |
unAcknowledgmentMatch(List<String> messageText)
Utility method for determining if a reply email should unacknoweledge an acknowledgable |
| Methods inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao |
|---|
afterPropertiesSet, createLoadedLogMessage, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, log, setConfigResource, setReloadCheckInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAckdConfigurationDao()
Constructor for DefaultAckdConfigurationDao.
| Method Detail |
|---|
public AckdConfiguration getConfig()
getConfig
getConfig in interface AckdConfigurationDaoAckdConfiguration object.public AckdConfiguration translateConfig(AckdConfiguration castorConfig)
translateConfig
translateConfig in class AbstractCastorConfigDao<AckdConfiguration,AckdConfiguration>castorConfig - a K object.
public Boolean acknowledgmentMatch(List<String> messageText)
acknowledgmentMatch in interface AckdConfigurationDaomessageText - a List object.
public Boolean clearMatch(List<String> messageText)
clearMatch in interface AckdConfigurationDaomessageText - a List object.
public Boolean escalationMatch(List<String> messageText)
escalationMatch in interface AckdConfigurationDaomessageText - a List object.
public Boolean unAcknowledgmentMatch(List<String> messageText)
unAcknowledgmentMatch in interface AckdConfigurationDaomessageText - a List object.
public Reader getReader(String readerName)
AckdReader requires that a name property
is defined and the configuration uses that name to retrieve configuration details for that named reader.
getReader in interface AckdConfigurationDaoreaderName - a String object.
public ReaderSchedule getReaderSchedule(String readerName)
AckdReader requires that a name property
is defined and the configuration uses that name to retrieve configuration details for that named reader.
getReaderSchedule in interface AckdConfigurationDaoreaderName - a String object.
public boolean isReaderEnabled(String readerName)
AckdReader requires that
a name property is defined and the configuration uses that name to retrieve configuration details for that named reader.
isReaderEnabled in interface AckdConfigurationDaoreaderName - a String object.
public void reloadConfiguration()
throws org.springframework.dao.DataAccessResourceFailureException
reloadConfiguration in interface AckdConfigurationDaoorg.springframework.dao.DataAccessResourceFailureException - if any.public int getEnabledReaderCount()
getEnabledReaderCount
getEnabledReaderCount in interface AckdConfigurationDaopublic List<Parameter> getParametersForReader(String name)
getParametersForReader
getParametersForReader in interface AckdConfigurationDaoname - a String object.
List object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||