org.opennms.netmgt.threshd
Class JMXThresholder

java.lang.Object
  extended by org.opennms.netmgt.threshd.JMXThresholder
All Implemented Interfaces:
ServiceThresholder
Direct Known Subclasses:
JBossThresholder, Jsr160Thresholder

Deprecated. No longer used - see ThresholdingVisitor

public abstract class JMXThresholder
extends Object
implements ServiceThresholder

The JMXThresholder class ...

Version:
$Id: $
Author:
Mike Jamison , OpenNMS , Mike Jamison , OpenNMS

Field Summary
 
Fields inherited from interface org.opennms.netmgt.threshd.ServiceThresholder
statusType, THRESHOLDING_FAILED, THRESHOLDING_SUCCEEDED, THRESHOLDING_UNKNOWN
 
Constructor Summary
JMXThresholder()
          Deprecated.  
 
Method Summary
 int check(ThresholdNetworkInterface iface, EventProxy eproxy, Map parameters)
          Deprecated.  Invokes threshold checking on the object.
 void initialize(Map parameters)
          Deprecated. initialize
 void initialize(ThresholdNetworkInterface iface, Map parameters)
          Deprecated. initialize
 void reinitialize()
          Deprecated. reinitialize
 void release()
          Deprecated. Responsible for freeing up any resources held by the thresholder.
 void release(ThresholdNetworkInterface iface)
          Deprecated. release
 String serviceName()
          Deprecated.  Returns the name of the service that the plug-in collects ("SNMP").
 void setServiceName(String name)
          Deprecated. Setter for the field serviceName.
 void setUseFriendlyName(boolean useFriendlyName)
          Deprecated. Setter for the field useFriendlyName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXThresholder

public JMXThresholder()
Deprecated. 
Method Detail

setServiceName

public void setServiceName(String name)
Deprecated. 

Setter for the field serviceName.

Parameters:
name - a String object.

serviceName

public String serviceName()
Deprecated. 

Returns the name of the service that the plug-in collects ("SNMP").

Returns:
The service that the plug-in collects.

initialize

public void initialize(Map parameters)
Deprecated. 

initialize

Initialize the service thresholder.

Specified by:
initialize in interface ServiceThresholder
Parameters:
parameters - a Map object.
Throws:
RuntimeException - Thrown if an unrecoverable error occurs that prevents the plug-in from functioning.

reinitialize

public void reinitialize()
Deprecated. 

reinitialize

Specified by:
reinitialize in interface ServiceThresholder

release

public void release()
Deprecated. 
Responsible for freeing up any resources held by the thresholder.

Specified by:
release in interface ServiceThresholder

initialize

public void initialize(ThresholdNetworkInterface iface,
                       Map parameters)
Deprecated. 

initialize

Responsible for performing all necessary initialization for the specified interface in preparation for thresholding.

Specified by:
initialize in interface ServiceThresholder
Parameters:
iface - a ThresholdNetworkInterface object.
parameters - a Map object.

release

public void release(ThresholdNetworkInterface iface)
Deprecated. 

release

Responsible for releasing any resources associated with the specified interface.

Specified by:
release in interface ServiceThresholder
Parameters:
iface - a ThresholdNetworkInterface object.

check

public int check(ThresholdNetworkInterface iface,
                 EventProxy eproxy,
                 Map parameters)
Deprecated. 

Invokes threshold checking on the object.

Perform threshold checking.

Specified by:
check in interface ServiceThresholder
Parameters:
iface - a ThresholdNetworkInterface object.
eproxy - a EventProxy object.
parameters - a Map object.
Returns:
a int.

setUseFriendlyName

public void setUseFriendlyName(boolean useFriendlyName)
Deprecated. 

Setter for the field useFriendlyName.

Parameters:
useFriendlyName - a boolean.


Copyright © 2011. All Rights Reserved.