org.opennms.netmgt.ackd.readers
Class DefaultAckReader

java.lang.Object
  extended by org.opennms.netmgt.ackd.readers.DefaultAckReader
All Implemented Interfaces:
AckReader, org.springframework.beans.factory.InitializingBean

public class DefaultAckReader
extends Object
implements AckReader, org.springframework.beans.factory.InitializingBean

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

Version:
$Id: $
Author:
David Hustace

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

DefaultAckReader

public DefaultAckReader()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

afterPropertiesSet

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception - if any.

start

public void start(ScheduledThreadPoolExecutor executor,
                  ReaderSchedule schedule,
                  boolean reloadConfig)
           throws IllegalStateException

start

Specified by:
start in interface AckReader
Parameters:
executor - a ScheduledThreadPoolExecutor object.
schedule - a ReaderSchedule object.
reloadConfig - a boolean.
Throws:
IllegalStateException

pause

public void pause()
           throws IllegalStateException

pause

Specified by:
pause in interface AckReader
Throws:
IllegalStateException - if any.

resume

public void resume(ScheduledThreadPoolExecutor executor)
            throws IllegalStateException

resume

Specified by:
resume in interface AckReader
Parameters:
executor - a ScheduledThreadPoolExecutor object.
Throws:
IllegalStateException

stop

public void stop()
          throws IllegalStateException

stop

Specified by:
stop in interface AckReader
Throws:
IllegalStateException - if any.

toString

public String toString()

Overrides:
toString in class Object

setAckProcessor

public void setAckProcessor(AckProcessor ackProcessor)

setAckProcessor

Specified by:
setAckProcessor in interface AckReader
Parameters:
ackProcessor - a AckProcessor object.

getAckProcessor

public AckProcessor getAckProcessor()

getAckProcessor

Specified by:
getAckProcessor in interface AckReader
Returns:
a AckProcessor object.

setAckdConfigDao

public void setAckdConfigDao(AckdConfigurationDao ackdConfigDao)

setAckdConfigDao

Parameters:
ackdConfigDao - a AckdConfigurationDao object.

getAckdConfigDao

public AckdConfigurationDao getAckdConfigDao()

getAckdConfigDao

Returns:
a AckdConfigurationDao object.

getState

public AckReader.AckReaderState getState()

getState

Specified by:
getState in interface AckReader
Returns:
a AckReaderState object.

getFuture

public Future<?> getFuture()

getFuture

Returns:
a Future object.

getName

public String getName()

getName

Specified by:
getName in interface AckReader
Returns:
a String object.

setName

public void setName(String name)

setName

Specified by:
setName in interface AckReader
Parameters:
name - a String object.


Copyright © 2011. All Rights Reserved.