|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.ackd.readers.DefaultAckReader
public class DefaultAckReader
Acknowledgment Reader implementation using Java Mail DONE: Identify acknowledgments for sent notifications DONE: Identify acknowledgments for alarm IDs (how the send knows the ID, good question) DONE: Persist acknowledgments DONE: Identify escalation reply DONE: Identify clear reply DOND: Identify unacknowledged reply DONE: Formalize Acknowledgment parameters (ack-type, id) DONE: JavaMail configuration factory DONE: Ackd configuration factory TODO: Associate email replies with openNMS user DONE: Finish scheduling component of JavaAckReader DONE: Configurable Schedule DONE: Identify Java Mail configuration element to use for reading replies TODO: Migrate JavaMailNotificationStrategy to new JavaMail Configuration and JavaSendMailer TODO: Migrate Availability Reports send via JavaMail to new JavaMail Configuration and JavaSendMailer TODO: Move reading email messages from MTM to JavaReadMailer class DONE: Need an event to cause re-loading of schedules based on changes to ackd-configuration DONE: Do some proper logging DONE: Handle "enabled" flag of the readers in ackd-configuration DONE: Move executor to Ackd daemon
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.opennms.netmgt.ackd.AckReader |
|---|
AckReader.AckReaderState |
| Constructor Summary | |
|---|---|
DefaultAckReader()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet |
AckdConfigurationDao |
getAckdConfigDao()
getAckdConfigDao |
AckProcessor |
getAckProcessor()
getAckProcessor |
Future<?> |
getFuture()
getFuture |
String |
getName()
getName |
AckReader.AckReaderState |
getState()
getState |
void |
pause()
pause |
void |
resume(ScheduledThreadPoolExecutor executor)
resume |
void |
setAckdConfigDao(AckdConfigurationDao ackdConfigDao)
setAckdConfigDao |
void |
setAckProcessor(AckProcessor ackProcessor)
setAckProcessor |
void |
setName(String name)
setName |
void |
start(ScheduledThreadPoolExecutor executor,
ReaderSchedule schedule,
boolean reloadConfig)
start |
void |
stop()
stop |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAckReader()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException - if any.
public void start(ScheduledThreadPoolExecutor executor,
ReaderSchedule schedule,
boolean reloadConfig)
throws IllegalStateException
start
start in interface AckReaderexecutor - a ScheduledThreadPoolExecutor object.schedule - a ReaderSchedule object.reloadConfig - a boolean.
IllegalStateException
public void pause()
throws IllegalStateException
pause
pause in interface AckReaderIllegalStateException - if any.
public void resume(ScheduledThreadPoolExecutor executor)
throws IllegalStateException
resume
resume in interface AckReaderexecutor - a ScheduledThreadPoolExecutor object.
IllegalStateException
public void stop()
throws IllegalStateException
stop
stop in interface AckReaderIllegalStateException - if any.public String toString()
toString in class Objectpublic void setAckProcessor(AckProcessor ackProcessor)
setAckProcessor
setAckProcessor in interface AckReaderackProcessor - a AckProcessor object.public AckProcessor getAckProcessor()
getAckProcessor
getAckProcessor in interface AckReaderAckProcessor object.public void setAckdConfigDao(AckdConfigurationDao ackdConfigDao)
setAckdConfigDao
ackdConfigDao - a AckdConfigurationDao object.public AckdConfigurationDao getAckdConfigDao()
getAckdConfigDao
AckdConfigurationDao object.public AckReader.AckReaderState getState()
getState
getState in interface AckReaderpublic Future<?> getFuture()
getFuture
Future object.public String getName()
getName
getName in interface AckReaderString object.public void setName(String name)
setName
setName in interface AckReadername - a String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||