org.opennms.netmgt.capsd.plugins
Class BgpSessionPlugin

java.lang.Object
  extended by org.opennms.netmgt.capsd.AbstractPlugin
      extended by org.opennms.netmgt.capsd.plugins.SnmpPlugin
          extended by org.opennms.netmgt.capsd.plugins.BgpSessionPlugin
All Implemented Interfaces:
Plugin

public final class BgpSessionPlugin
extends SnmpPlugin

This class is used to test if BGP Sessions for a specific peer is available. Check for BgpSession via RFC1269-MIB.

Author:
Ronny Trommer , OpenNMS

Constructor Summary
BgpSessionPlugin()
           
 
Method Summary
 String getProtocolName()
          Returns the name of the protocol that this plugin checks on the target system for support.
 boolean isProtocolSupported(InetAddress address, Map<String,Object> qualifiers)
          Returns true if the protocol defined by this plugin is supported.
static Category log()
           
 
Methods inherited from class org.opennms.netmgt.capsd.plugins.SnmpPlugin
isProtocolSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BgpSessionPlugin

public BgpSessionPlugin()
Method Detail

getProtocolName

public String getProtocolName()
Returns the name of the protocol that this plugin checks on the target system for support.

Specified by:
getProtocolName in interface Plugin
Overrides:
getProtocolName in class SnmpPlugin
Returns:
The protocol name for this plugin.

isProtocolSupported

public boolean isProtocolSupported(InetAddress address,
                                   Map<String,Object> qualifiers)
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
Overrides:
isProtocolSupported in class SnmpPlugin
Parameters:
address - The address to check for support.
qualifiers - The map where qualification are set by the plugin.
Returns:
True if the protocol is supported by the address.

log

public static Category log()


Copyright © 2009. All Rights Reserved.