|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openoss.opennms.spring.qosd.ejb.AlarmListConnectionManagerJ2eeImpl
public class AlarmListConnectionManagerJ2eeImpl
This class provides an implimentation of a AlarmListConnectionManager which connects to an external AlarmMonitor bean in a J2ee container ( i.e. in Jboss ). It proxys the calls to the AlarmListJ2eeConnectionManagerThread which coes the actiual connection. This allows Spring wiring to be used to select this or nother class as the AlarmListConnectionManager in QosD
| Field Summary |
|---|
| Fields inherited from interface org.openoss.opennms.spring.qosd.AlarmListConnectionManager |
|---|
CONNECTED, DISCONNECTED, REBUILD, SEND, SENT, STOP |
| Constructor Summary | |
|---|---|
AlarmListConnectionManagerJ2eeImpl()
Constructor for AlarmListConnectionManagerJ2eeImpl. |
|
| Method Summary | |
|---|---|
int |
getStatus()
getStatus |
void |
init(PropertiesLoader props,
Properties env)
Initialises the ConnectionManagerThread |
void |
kill()
kill |
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(String _rebuilt_message)
this method resets the alarm list in the AlarmMonitorBean and causes an alarmlist rebuilt event to be sent. |
void |
run()
run |
void |
send(Hashtable<javax.oss.fm.monitor.AlarmKey,javax.oss.fm.monitor.AlarmValue> 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlarmListConnectionManagerJ2eeImpl()
Constructor for AlarmListConnectionManagerJ2eeImpl.
| Method Detail |
|---|
public int getStatus()
getStatus
getStatus in interface AlarmListConnectionManager
public void init(PropertiesLoader props,
Properties env)
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()
kill
kill in interface AlarmListConnectionManagerpublic void reset_list(String _rebuilt_message)
reset_list in interface AlarmListConnectionManager_rebuilt_message - message to include in the NotifyAlarmListRebuiltEvent
public void run()
throws IllegalStateException
run
run in interface AlarmListConnectionManagerIllegalStateException - if any.public void send(Hashtable<javax.oss.fm.monitor.AlarmKey,javax.oss.fm.monitor.AlarmValue> alarmList)
send in interface AlarmListConnectionManageralarmList - a Hashtable object.public void start()
start in interface AlarmListConnectionManagerpublic javax.oss.fm.monitor.AlarmValue makeAlarmValue()
makeAlarmValue in interface AlarmListConnectionManagerpublic javax.oss.fm.monitor.AlarmValue makeAlarmValueFromSpec()
makeAlarmValueFromSpec in interface AlarmListConnectionManagerpublic void setApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext m_context)
setApplicationContext in interface AlarmListConnectionManagerm_context - - application context for this bean to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||