org.openoss.opennms.spring.qosdrx
Class QoSDrx

java.lang.Object
  extended by org.openoss.opennms.spring.qosdrx.QoSDrx
All Implemented Interfaces:
org.opennms.core.fiber.Fiber, org.opennms.core.fiber.PausableFiber

public class QoSDrx
extends java.lang.Object
implements org.opennms.core.fiber.PausableFiber


Field Summary
static java.lang.String NAME
           
 
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
 
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
 
Constructor Summary
QoSDrx()
           
 
Method Summary
static org.apache.log4j.Logger getLog()
          Method to get the QoSDrx's logger from OpenNMS
 java.lang.String getName()
          Returns the Log category name
 java.lang.String getRuntimeStatistics()
          Method to return statistics from the running receivers
 java.lang.String getStats()
          not used but needed for initialisation
 int getStatus()
          lets OpenNMS know what state the daemon is in
 void init()
          Method to set up the fiber.
 void pause()
          Pause method of fiber, called by OpenNMS to put the fiber in a suspended state until it can be later resumed.
 void resume()
          Resume method of fiber, called by OpenNMS to start the fiber up from a paused state.
 void setalarmDao(org.opennms.netmgt.dao.AlarmDao alarmDao)
          Used by Spring Application context to pass in alarmDao
 void setapplicationcontext(org.springframework.context.support.ClassPathXmlApplicationContext m_context)
          Used by jmx mbean QoSDrx to pass in Spring Application context
 void setassetRecordDao(org.opennms.netmgt.dao.AssetRecordDao ar)
          Used by Spring Application context to pass in AssetRecordDao
 void setinitialOssBeanRunner(org.openoss.ossj.fm.monitor.spring.OssBeanRunner initialOssBeanRunner)
           
 void setnodeDao(org.opennms.netmgt.dao.NodeDao nodedao)
          Used by Spring Application context to pass in NodeDaof
 void start()
          The start() method loads the configuration for the QoSDrx daemon and starts the initialOssBeanRunner
 void stop()
          Stop method of fiber, called by OpenNMS when fiber execution is to finish.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

QoSDrx

public QoSDrx()
Method Detail

setinitialOssBeanRunner

public void setinitialOssBeanRunner(org.openoss.ossj.fm.monitor.spring.OssBeanRunner initialOssBeanRunner)
Parameters:
ossBeanRunner - the ossBeanRunner to set

setassetRecordDao

public void setassetRecordDao(org.opennms.netmgt.dao.AssetRecordDao ar)
Used by Spring Application context to pass in AssetRecordDao

Parameters:
ar -

setnodeDao

public void setnodeDao(org.opennms.netmgt.dao.NodeDao nodedao)
Used by Spring Application context to pass in NodeDaof

Parameters:
nodedao -

setalarmDao

public void setalarmDao(org.opennms.netmgt.dao.AlarmDao alarmDao)
Used by Spring Application context to pass in alarmDao

Parameters:
alarmDao -

setapplicationcontext

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

Parameters:
alarmDao -

init

public void init()
Method to set up the fiber.


start

public void start()
The start() method loads the configuration for the QoSDrx daemon and starts the initialOssBeanRunner

Specified by:
start in interface org.opennms.core.fiber.Fiber

stop

public void stop()
Stop method of fiber, called by OpenNMS when fiber execution is to finish. Its purpose is to clean everything up, e.g. close any JNDI or database connections, before the fiber's execution is ended.

Specified by:
stop in interface org.opennms.core.fiber.Fiber

pause

public void pause()
Pause method of fiber, called by OpenNMS to put the fiber in a suspended state until it can be later resumed. NOTE QoSDrx.pause() NOT IMPLEMENTED - this method does nothing and returns

Specified by:
pause in interface org.opennms.core.fiber.PausableFiber

resume

public void resume()
Resume method of fiber, called by OpenNMS to start the fiber up from a paused state. NOTE QoSDrx.resume() NOT IMPLEMENTED - this method does nothing and returns

Specified by:
resume in interface org.opennms.core.fiber.PausableFiber

getName

public java.lang.String getName()
Returns the Log category name

Specified by:
getName in interface org.opennms.core.fiber.Fiber

getStatus

public int getStatus()
lets OpenNMS know what state the daemon is in

Specified by:
getStatus in interface org.opennms.core.fiber.Fiber
Parameters:
status -

getLog

public static org.apache.log4j.Logger getLog()
Method to get the QoSDrx's logger from OpenNMS


getRuntimeStatistics

public java.lang.String getRuntimeStatistics()
Method to return statistics from the running receivers

Returns:
string representation of the statistics for the running receivers

getStats

public java.lang.String getStats()
not used but needed for initialisation

Returns:
stats


Copyright ? 2006-2008. All Rights Reserved.