|
||||||||||
| 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()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlarmListConnectionManagerJ2eeImpl()
| Method Detail |
|---|
public 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()
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 conext for this bean to use
SPRING DAO SETTERS - NOT USED IN THIS VERSION
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||