org.openoss.opennms.spring.qosd
Interface AlarmListConnectionManager

All Known Implementing Classes:
AlarmListConnectionManagerJ2eeImpl, AlarmListConnectionManagerSpringImpl, AlarmListJ2eeConnectionManagerThread

public interface AlarmListConnectionManager


Field Summary
static int CONNECTED
           
static int DISCONNECTED
           
static int REBUILD
           
static int SEND
           
static int SENT
           
static int STOP
           
 
Method Summary
 int getStatus()
          returns the threads current status states for status: CONNECTED = 0; DISCONNECTED = 1; STOP = 2;
 void init(PropertiesLoader props, java.util.Properties env)
          Initialises the ConnectionManagerThread
 void kill()
          Stops the ConnectionManagerThread
 javax.oss.fm.monitor.AlarmValue makeAlarmValue()
          Makes a new empty alarm value object NOTE THIS IS A PATCH to proxy for JVTAlarmMonitorSession.makeAlarmValue()
 javax.oss.fm.monitor.AlarmValue makeAlarmValueFromSpec()
          Makes a new alarm value object pre-populated with internal objects which have been made from a local invarient specification.
 void reset_list(java.lang.String _rebuilt_message)
          this method resets the alarm list in the AlarmMonitorBean and causes an alarmlist rebuilt event to be sent.
 void run()
          Starts the ConnectionManagerThread
 void send(java.util.Hashtable alarmList)
          Sends the AlarmList to the AlarmMonitorBean
 void setapplicationcontext(org.springframework.context.support.ClassPathXmlApplicationContext m_context)
          Used by jmx mbean QoSD to pass in Spring Application context
 void start()
          Causes the thread supporting the connection Manager to start
 

Field Detail

CONNECTED

static final int CONNECTED
See Also:
Constant Field Values

DISCONNECTED

static final int DISCONNECTED
See Also:
Constant Field Values

STOP

static final int STOP
See Also:
Constant Field Values

SEND

static final int SEND
See Also:
Constant Field Values

SENT

static final int SENT
See Also:
Constant Field Values

REBUILD

static final int REBUILD
See Also:
Constant Field Values
Method Detail

reset_list

void reset_list(java.lang.String _rebuilt_message)
this method resets the alarm list in the AlarmMonitorBean and causes an alarmlist rebuilt event to be sent.

Parameters:
_rebuilt_message - message to include in the NotifyAlarmListRebuiltEvent

send

void send(java.util.Hashtable alarmList)
Sends the AlarmList to the AlarmMonitorBean

Parameters:
alarmList -

run

void run()
         throws java.lang.IllegalStateException
Starts the ConnectionManagerThread

Throws:
java.lang.IllegalStateException

init

void init(PropertiesLoader props,
          java.util.Properties env)
Initialises the ConnectionManagerThread

Parameters:
props - The PropertiesLoader method which reads the Qosd.properties file
env - the returned properties for setting up the connections to the AlarmMonitorBean

kill

void kill()
Stops the ConnectionManagerThread


getStatus

int getStatus()
returns the threads current status states for status: CONNECTED = 0; DISCONNECTED = 1; STOP = 2;


start

void start()
Causes the thread supporting the connection Manager to start


makeAlarmValue

javax.oss.fm.monitor.AlarmValue makeAlarmValue()
Makes a new empty alarm value object NOTE THIS IS A PATCH to proxy for JVTAlarmMonitorSession.makeAlarmValue()


makeAlarmValueFromSpec

javax.oss.fm.monitor.AlarmValue makeAlarmValueFromSpec()
Makes a new alarm value object pre-populated with internal objects which have been made from a local invarient specification. NOTE THIS IS A PATCH to proxy for JVTAlarmMonitorSession


setapplicationcontext

void setapplicationcontext(org.springframework.context.support.ClassPathXmlApplicationContext m_context)
Used by jmx mbean QoSD to pass in Spring Application context

Parameters:
m_context - - application context for this bean to use


Copyright ? 2006-2008. All Rights Reserved.