org.openoss.opennms.spring.qosdrx
Class QoSDrx

java.lang.Object
  extended by org.opennms.netmgt.daemon.AbstractServiceDaemon
      extended by org.openoss.opennms.spring.qosdrx.QoSDrx
All Implemented Interfaces:
Fiber, PausableFiber, SpringServiceDaemon, ServiceDaemon, org.springframework.beans.factory.InitializingBean

public class QoSDrx
extends AbstractServiceDaemon
implements PausableFiber

QoSDrx class.

Version:
$Id: $
Author:
ranger

Field Summary
static String NAME
          Constant NAME="OpenOSS.QoSDrx"
 
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()
          Constructor for QoSDrx.
 
Method Summary
 String getRuntimeStatistics()
          Method to return statistics from the running receivers
 String getStats()
          not used but needed for initialisation
protected  void onInit()
          Method to set up the fiber.
protected  void onPause()
          Pause method of fiber, called by OpenNMS to put the fiber in a suspended state until it can be later resumed.
protected  void onResume()
          Resume method of fiber, called by OpenNMS to start the fiber up from a paused state.
protected  void onStart()
          The start() method loads the configuration for the QoSDrx daemon and starts the initialOssBeanRunner
protected  void onStop()
          Stop method of fiber, called by OpenNMS when fiber execution is to finish.
 void setAlarmDao(AlarmDao alarmDao)
          Used by Spring Application context to pass in alarmDao
 void setApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext context)
          Used by jmx mbean QoSDrx to pass in Spring Application context
 void setAssetRecordDao(AssetRecordDao ar)
          Used by Spring Application context to pass in AssetRecordDao
 void setInitialOssBeanRunner(org.openoss.ossj.fm.monitor.spring.OssBeanRunner initialOssBeanRunner)
          Setter for the field initialOssBeanRunner.
 void setNodeDao(NodeDao nodedao)
          Used by Spring Application context to pass in NodeDaof
 
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, debugf, debugf, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, isStartPending, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opennms.core.fiber.PausableFiber
pause, resume
 
Methods inherited from interface org.opennms.core.fiber.Fiber
getName, getStatus, start, stop
 

Field Detail

NAME

public static final String NAME
Constant NAME="OpenOSS.QoSDrx"

See Also:
Constant Field Values
Constructor Detail

QoSDrx

public QoSDrx()

Constructor for QoSDrx.

Method Detail

setInitialOssBeanRunner

public void setInitialOssBeanRunner(org.openoss.ossj.fm.monitor.spring.OssBeanRunner initialOssBeanRunner)

Setter for the field initialOssBeanRunner.

Parameters:
initialOssBeanRunner - the ossBeanRunner to set

setAssetRecordDao

public void setAssetRecordDao(AssetRecordDao ar)
Used by Spring Application context to pass in AssetRecordDao

Parameters:
ar - a AssetRecordDao object.

setNodeDao

public void setNodeDao(NodeDao nodedao)
Used by Spring Application context to pass in NodeDaof

Parameters:
nodedao - a NodeDao object.

setAlarmDao

public void setAlarmDao(AlarmDao alarmDao)
Used by Spring Application context to pass in alarmDao

Parameters:
alarmDao - a AlarmDao object.

setApplicationContext

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

Parameters:
context - the application context

onInit

protected void onInit()
Method to set up the fiber.

Specified by:
onInit in class AbstractServiceDaemon

onStart

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

Overrides:
onStart in class AbstractServiceDaemon

onStop

protected void onStop()
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.

Overrides:
onStop in class AbstractServiceDaemon

onPause

protected void onPause()
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

Overrides:
onPause in class AbstractServiceDaemon

onResume

protected void onResume()
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

Overrides:
onResume in class AbstractServiceDaemon

getRuntimeStatistics

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

Returns:
string representation of the statistics for the running receivers

getStats

public String getStats()
not used but needed for initialisation

Returns:
stats


Copyright © 2011. All Rights Reserved.