org.opennms.netmgt.linkd
Class LinkableNode

java.lang.Object
  extended by org.opennms.netmgt.linkd.LinkableNode

public class LinkableNode
extends Object

LinkableNode class.

Version:
$Id: $
Author:
Antonio Russo

Constructor Summary
LinkableNode(int nodeId, InetAddress snmpPrimaryAddr, String sysoid)
          Constructor for LinkableNode.
 
Method Summary
 void addBackBoneBridgePorts(int bridgeport)
          add bridgeport to backbone ports
 void addBridgeIdentifier(String bridge)
           
 void addBridgeIdentifier(String bridge, String vlan)
           
 void addMacAddress(int bridgeport, String macAddress, String vlan)
           
 void addStpInterface(OnmsStpInterface stpIface)
          addStpInterface
 List<OnmsAtInterface> getAtInterfaces()
          getAtInterfaces
 List<Integer> getBackBoneBridgePorts()
           
 String getBridgeIdentifier(String vlan)
           
 List<String> getBridgeIdentifiers()
           
 int getBridgePort(int ifindex)
           
 List<Integer> getBridgePortsFromMac(String macAddress)
           
 List<CdpInterface> getCdpInterfaces()
          getCdpInterfaces
 int getIfindex(int bridgeport)
           
 Set<String> getMacAddressesOnBridgePort(int bridgeport)
           
 int getNodeId()
          getNodeId
 Map<Integer,Set<String>> getPortMacs()
           
 List<RouterInterface> getRouteInterfaces()
          getRouteInterfaces
 InetAddress getSnmpPrimaryIpAddr()
          getSnmpPrimaryIpAddr
 Map<String,List<OnmsStpInterface>> getStpInterfaces()
          getStpInterfaces
 String getStpRoot(String vlan)
           
 String getSysoid()
          getSysoid
 String getVlan(String macAddress)
           
 List<OnmsVlan> getVlans()
          Getter for the field vlans.
 boolean hasAtInterfaces()
          hasAtInterfaces
 boolean hasCdpInterfaces()
          hasCdpInterfaces
 boolean hasMacAddress(String macAddress)
           
 boolean hasMacAddresses()
           
 boolean hasMacAddressesOnBridgePort(int bridgeport)
           
 boolean hasRouteInterfaces()
          hasRouteInterfaces
 boolean hasStpRoot(String vlan)
           
 boolean isBackBoneBridgePort(int bridgeport)
          return true if bridgeport is a backbone port
 boolean isBridgeIdentifier(String bridge)
           
 boolean isBridgeNode()
          isBridgeNode
 void setAtInterfaces(List<OnmsAtInterface> atinterfaces)
          setAtInterfaces
 void setBackBoneBridgePorts(List<Integer> backBoneBridgePorts)
           
 void setBridgeIdentifiers(List<String> bridgeIdentifiers)
           
 void setCdpInterfaces(List<CdpInterface> cdpinterfaces)
          setCdpInterfaces
 void setPortMacs(Map<Integer,Set<String>> portMacs)
           
 void setRouteInterfaces(List<RouterInterface> routeinterfaces)
          setRouteInterfaces
 void setStpInterfaces(Map<String,List<OnmsStpInterface>> stpInterfaces)
          setStpInterfaces
 void setVlans(List<OnmsVlan> vlans)
          Setter for the field vlans.
 void setVlanStpRoot(String vlan, String stproot)
           
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkableNode

public LinkableNode(int nodeId,
                    InetAddress snmpPrimaryAddr,
                    String sysoid)

Constructor for LinkableNode.

Parameters:
nodeId - a int.
snmprimaryaddr - a InetAddress object.
sysoid - a String object.
Method Detail

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

getNodeId

public int getNodeId()

getNodeId

Returns:
a int.

getSnmpPrimaryIpAddr

public InetAddress getSnmpPrimaryIpAddr()

getSnmpPrimaryIpAddr

Returns:
a String object.

getCdpInterfaces

public List<CdpInterface> getCdpInterfaces()

getCdpInterfaces

Returns:
Returns the m_cdpinterfaces.

setCdpInterfaces

public void setCdpInterfaces(List<CdpInterface> cdpinterfaces)

setCdpInterfaces

Parameters:
cdpinterfaces - The m_cdpinterfaces to set.

hasCdpInterfaces

public boolean hasCdpInterfaces()

hasCdpInterfaces

Returns:
Returns the m_hascdpinterfaces.

getRouteInterfaces

public List<RouterInterface> getRouteInterfaces()

getRouteInterfaces

Returns:
Returns the m_routeinterfaces.

setRouteInterfaces

public void setRouteInterfaces(List<RouterInterface> routeinterfaces)

setRouteInterfaces

Parameters:
routeinterfaces - a List object.

hasAtInterfaces

public boolean hasAtInterfaces()

hasAtInterfaces

Returns:
Returns the m_hasatinterfaces.

getAtInterfaces

public List<OnmsAtInterface> getAtInterfaces()

getAtInterfaces

Returns:
Returns the m_routeinterfaces.

setAtInterfaces

public void setAtInterfaces(List<OnmsAtInterface> atinterfaces)

setAtInterfaces

Parameters:
m_atinterfaces - a List object.

hasRouteInterfaces

public boolean hasRouteInterfaces()

hasRouteInterfaces

Returns:
Returns the m_hascdpinterfaces.

isBridgeNode

public boolean isBridgeNode()

isBridgeNode

Returns:
Returns the isBridgeNode.

getBackBoneBridgePorts

public List<Integer> getBackBoneBridgePorts()
Returns:
Returns the backBoneBridgePorts.

setBackBoneBridgePorts

public void setBackBoneBridgePorts(List<Integer> backBoneBridgePorts)
Parameters:
backBoneBridgePorts - The backBoneBridgePorts to set.

isBackBoneBridgePort

public boolean isBackBoneBridgePort(int bridgeport)
return true if bridgeport is a backbone port

Parameters:
bridgeport -
Returns:

addBackBoneBridgePorts

public void addBackBoneBridgePorts(int bridgeport)
add bridgeport to backbone ports

Parameters:
bridgeport -

getBridgeIdentifiers

public List<String> getBridgeIdentifiers()
Returns:
Returns the bridgeIdentifiers.

setBridgeIdentifiers

public void setBridgeIdentifiers(List<String> bridgeIdentifiers)
Parameters:
bridgeIdentifiers - The bridgeIdentifiers to set.

addBridgeIdentifier

public void addBridgeIdentifier(String bridge,
                                String vlan)

isBridgeIdentifier

public boolean isBridgeIdentifier(String bridge)

addBridgeIdentifier

public void addBridgeIdentifier(String bridge)

getBridgeIdentifier

public String getBridgeIdentifier(String vlan)

addMacAddress

public void addMacAddress(int bridgeport,
                          String macAddress,
                          String vlan)

hasMacAddress

public boolean hasMacAddress(String macAddress)

hasMacAddresses

public boolean hasMacAddresses()

getVlan

public String getVlan(String macAddress)

getMacAddressesOnBridgePort

public Set<String> getMacAddressesOnBridgePort(int bridgeport)

hasMacAddressesOnBridgePort

public boolean hasMacAddressesOnBridgePort(int bridgeport)

getBridgePortsFromMac

public List<Integer> getBridgePortsFromMac(String macAddress)

getIfindex

public int getIfindex(int bridgeport)

getBridgePort

public int getBridgePort(int ifindex)

getPortMacs

public Map<Integer,Set<String>> getPortMacs()
Returns:
Returns the portMacs.

setPortMacs

public void setPortMacs(Map<Integer,Set<String>> portMacs)
Parameters:
portMacs - The portMacs to set.

setVlanStpRoot

public void setVlanStpRoot(String vlan,
                           String stproot)

hasStpRoot

public boolean hasStpRoot(String vlan)

getStpRoot

public String getStpRoot(String vlan)

getStpInterfaces

public Map<String,List<OnmsStpInterface>> getStpInterfaces()

getStpInterfaces

Returns:
Returns the stpInterfaces.

setStpInterfaces

public void setStpInterfaces(Map<String,List<OnmsStpInterface>> stpInterfaces)

setStpInterfaces

Parameters:
stpInterfaces - The stpInterfaces to set.

addStpInterface

public void addStpInterface(OnmsStpInterface stpIface)

addStpInterface

Parameters:
stpIface - a OnmsStpInterface object.

getSysoid

public String getSysoid()

getSysoid

Returns:
a String object.

getVlans

public List<OnmsVlan> getVlans()

Getter for the field vlans.

Returns:
a List object.

setVlans

public void setVlans(List<OnmsVlan> vlans)

Setter for the field vlans.

Parameters:
vlans - a List object.


Copyright © 2011. All Rights Reserved.