|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.openoss.opennms.spring.qosd.ejb.AlarmListJ2eeConnectionManagerThread
public class AlarmListJ2eeConnectionManagerThread
The AlarmListJ2eeConnectionManagerThread tries to register with the AlarmMonitorBean and maintains the connection for the QosD. If the connection is lost, it reestablishes the connection.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
java.util.Properties |
env
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Fields inherited from interface org.openoss.opennms.spring.qosd.AlarmListConnectionManager |
|---|
CONNECTED, DISCONNECTED, REBUILD, SEND, SENT, STOP |
| Constructor Summary | |
|---|---|
AlarmListJ2eeConnectionManagerThread()
|
|
| 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 |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openoss.opennms.spring.qosd.AlarmListConnectionManager |
|---|
start |
| Field Detail |
|---|
public java.util.Properties env
| Constructor Detail |
|---|
public AlarmListJ2eeConnectionManagerThread()
| Method Detail |
|---|
public void reset_list(java.lang.String _rebuilt_message)
AlarmListConnectionManager
reset_list in interface AlarmListConnectionManager_rebuilt_message - message to include in the NotifyAlarmListRebuiltEventpublic void send(java.util.Hashtable alarmList)
AlarmListConnectionManager
send in interface AlarmListConnectionManager
public void run()
throws java.lang.IllegalStateException
AlarmListConnectionManager
run in interface java.lang.Runnablerun in interface AlarmListConnectionManagerrun in class java.lang.Threadjava.lang.IllegalStateException
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 int getStatus()
AlarmListConnectionManager
getStatus 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||