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 ...

Author:
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. Perform threshold checking.
 void initialize(Map parameters)
          Deprecated.  Initialize the service thresholder.
 void initialize(ThresholdNetworkInterface iface, Map parameters)
          Deprecated. Responsible for performing all necessary initialization for the specified interface in preparation for thresholding.
 void reinitialize()
          Deprecated. Called when configurations have changed and need to be refreshed at the ServiceThresolder level.
 void release()
          Deprecated. Responsible for freeing up any resources held by the thresholder.
 void release(ThresholdNetworkInterface iface)
          Deprecated. Responsible for releasing any resources associated with the specified interface.
 String serviceName()
          Deprecated.  Returns the name of the service that the plug-in collects ("SNMP").
 void setServiceName(String name)
          Deprecated.  
 void setUseFriendlyName(boolean useFriendlyName)
          Deprecated.  
 
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. 

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 the service thresholder.

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

reinitialize

public void reinitialize()
Deprecated. 
Description copied from interface: ServiceThresholder
Called when configurations have changed and need to be refreshed at the ServiceThresolder level. Should not do a "full" initialization, but just reload any config objects that might have incorrect cached data. It is up to the caller to call "release/initialize" for any interfaces that need reinitialization, and it is recommended to do so *after* calling reinitialize(), so that any objects that might be used in initializing the interfaces have been reloaded.

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. 
Responsible for performing all necessary initialization for the specified interface in preparation for thresholding.

Specified by:
initialize in interface ServiceThresholder
Parameters:
iface - Network interface to be prepped for thresholding.
parameters - Key/value pairs associated with the package to which the interface belongs..

release

public void release(ThresholdNetworkInterface iface)
Deprecated. 
Responsible for releasing any resources associated with the specified interface.

Specified by:
release in interface ServiceThresholder
Parameters:
iface - Network interface to be released.

check

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

Specified by:
check in interface ServiceThresholder
Parameters:
iface - Network interface to be data collected.
eproxy - Eventy proxy for sending events.
parameters - Key/value pairs from the package to which the interface belongs.

setUseFriendlyName

public void setUseFriendlyName(boolean useFriendlyName)
Deprecated. 
Parameters:
useFriedlyName - The useFriedlyName to set.


Copyright © 2009. All Rights Reserved.