org.opennms.netmgt.capsd.plugins
Class JMXPlugin

java.lang.Object
  extended by org.opennms.netmgt.capsd.AbstractPlugin
      extended by org.opennms.netmgt.capsd.plugins.JMXPlugin
All Implemented Interfaces:
Plugin
Direct Known Subclasses:
JBossPlugin, JMXSecurePlugin, Jsr160Plugin, MX4JPlugin

public abstract class JMXPlugin
extends AbstractPlugin

Abstract JMXPlugin class.

Version:
$Id: $
Author:
ranger

Constructor Summary
JMXPlugin()
           
 
Method Summary
abstract  ConnectionWrapper getMBeanServerConnection(Map<String,Object> parameterMap, InetAddress address)
          getMBeanServerConnection
 String getProtocolName()
          Getter for the field protocolName.
abstract  String getProtocolName(Map<String,Object> parameterMap)
          Getter for the field protocolName.
 boolean isProtocolSupported(InetAddress address, Map<String,Object> map)
          Returns true if the protocol defined by this plugin is supported.
 
Methods inherited from class org.opennms.netmgt.capsd.AbstractPlugin
isProtocolSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXPlugin

public JMXPlugin()
Method Detail

getProtocolName

public abstract String getProtocolName(Map<String,Object> parameterMap)

Getter for the field protocolName.

Parameters:
parameterMap - a Map object.
Returns:
a String object.

getMBeanServerConnection

public abstract ConnectionWrapper getMBeanServerConnection(Map<String,Object> parameterMap,
                                                           InetAddress address)

getMBeanServerConnection

Parameters:
parameterMap - a Map object.
address - a InetAddress object.
Returns:
a ConnectionWrapper object.

getProtocolName

public String getProtocolName()

Getter for the field protocolName.

Specified by:
getProtocolName in interface Plugin
Specified by:
getProtocolName in class AbstractPlugin
Returns:
a String object.

isProtocolSupported

public boolean isProtocolSupported(InetAddress address,
                                   Map<String,Object> map)
Returns true if the protocol defined by this plugin is supported. If the protocol is not supported then a false value is returned to the caller. The qualifier map passed to the method is used by the plugin to return additional information by key-name. These key-value pairs can be added to service events if needed. Returns true if the protocol defined by this plugin is supported. If the protocol is not supported then a false value is returned to the caller. The qualifier map passed to the method is used by the plugin to return additional information by key-name. These key-value pairs can be added to service events if needed.

Specified by:
isProtocolSupported in interface Plugin
Specified by:
isProtocolSupported in class AbstractPlugin
Parameters:
address - The address to check for support.
map - The map where qualification are set by the plugin.
Returns:
True if the protocol is supported by the address.


Copyright © 2011. All Rights Reserved.