|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openoss.opennms.spring.qosd.spring.AlarmListConnectionManagerSpringImpl
public class AlarmListConnectionManagerSpringImpl
| Field Summary |
|---|
| Fields inherited from interface org.openoss.opennms.spring.qosd.AlarmListConnectionManager |
|---|
CONNECTED, DISCONNECTED, REBUILD, SEND, SENT, STOP |
| Constructor Summary | |
|---|---|
AlarmListConnectionManagerSpringImpl()
The AlarmListConnectionManagerSpringImpl instantiates the AlarmMonitorBean within OpenNMS without Jboss This is an alternative to contacting the bean in jboss. |
|
| 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 |
setAlarmMonitorDao(org.openoss.ossj.fm.monitor.spring.AlarmMonitorDao alarmMonitorDao)
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlarmListConnectionManagerSpringImpl()
| Method Detail |
|---|
public void setAlarmMonitorDao(org.openoss.ossj.fm.monitor.spring.AlarmMonitorDao alarmMonitorDao)
alarmMonitorDao - the alarmMonitorDao to setpublic void setapplicationcontext(org.springframework.context.support.ClassPathXmlApplicationContext m_context)
setapplicationcontext in interface AlarmListConnectionManagerm_context - - application conext for this bean to usepublic int getStatus()
AlarmListConnectionManager
getStatus in interface AlarmListConnectionManager
public void init(PropertiesLoader props,
java.util.Properties env)
AlarmListConnectionManager
init in interface AlarmListConnectionManagerprops - The PropertiesLoader method which reads the Qosd.properties fileenv - the returned properties for setting up the connections to the AlarmMonitorBeanpublic void kill()
AlarmListConnectionManager
kill in interface AlarmListConnectionManagerpublic void reset_list(java.lang.String _rebuilt_message)
AlarmListConnectionManager
reset_list in interface AlarmListConnectionManager_rebuilt_message - message to include in the NotifyAlarmListRebuiltEvent
public void run()
throws java.lang.IllegalStateException
AlarmListConnectionManager
run in interface AlarmListConnectionManagerjava.lang.IllegalStateExceptionpublic void send(java.util.Hashtable alarmList)
AlarmListConnectionManager
send in interface AlarmListConnectionManagerpublic void start()
AlarmListConnectionManager
start in interface AlarmListConnectionManagerpublic javax.oss.fm.monitor.AlarmValue makeAlarmValue()
makeAlarmValue in interface AlarmListConnectionManagerpublic javax.oss.fm.monitor.AlarmValue makeAlarmValueFromSpec()
makeAlarmValueFromSpec in interface AlarmListConnectionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||