org.opennms.netmgt.config.linkd
Class LinkdConfiguration

java.lang.Object
  extended by org.opennms.netmgt.config.linkd.LinkdConfiguration
All Implemented Interfaces:
java.io.Serializable

public class LinkdConfiguration
extends java.lang.Object
implements java.io.Serializable

Top-level element for the linkd-configuration.xml configuration file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
LinkdConfiguration()
           
 
Method Summary
 void addPackage(int index, Package vPackage)
          Method addPackage
 void addPackage(Package vPackage)
          Method addPackage
 void clearPackage()
          Method clearPackage
 void deleteAutoDiscovery()
          Method deleteAutoDiscovery
 void deleteDiscovery_link_interval()
          Method deleteDiscovery_link_interval
 void deleteEnableDiscoveryDownload()
          Method deleteEnableDiscoveryDownload
 void deleteEnableVlanDiscovery()
          Method deleteEnableVlanDiscovery
 void deleteInitial_sleep_time()
          Method deleteInitial_sleep_time
 void deleteSaveRouteTable()
          Method deleteSaveRouteTable
 void deleteSaveStpInterfaceTable()
          Method deleteSaveStpInterfaceTable
 void deleteSaveStpNodeTable()
          Method deleteSaveStpNodeTable
 void deleteSnmp_poll_interval()
          Method deleteSnmp_poll_interval
 void deleteThreads()
          Method deleteThreads
 void deleteUseBridgeDiscovery()
          Method deleteUseBridgeDiscovery
 void deleteUseCdpDiscovery()
          Method deleteUseCdpDiscovery
 void deleteUseIpRouteDiscovery()
          Method deleteUseIpRouteDiscovery
 java.util.Enumeration enumeratePackage()
          Method enumeratePackage
 boolean getAutoDiscovery()
          Returns the value of field 'autoDiscovery'.
 long getDiscovery_link_interval()
          Returns the value of field 'discovery_link_interval'.
 boolean getEnableDiscoveryDownload()
          Returns the value of field 'enableDiscoveryDownload'.
 boolean getEnableVlanDiscovery()
          Returns the value of field 'enableVlanDiscovery'.
 long getInitial_sleep_time()
          Returns the value of field 'initial_sleep_time'.
 Package[] getPackage()
          Method getPackage
 Package getPackage(int index)
          Method getPackage
 java.util.ArrayList getPackageCollection()
          Method getPackageCollection Returns a reference to '_package'.
 int getPackageCount()
          Method getPackageCount
 boolean getSaveRouteTable()
          Returns the value of field 'saveRouteTable'.
 boolean getSaveStpInterfaceTable()
          Returns the value of field 'saveStpInterfaceTable'.
 boolean getSaveStpNodeTable()
          Returns the value of field 'saveStpNodeTable'.
 long getSnmp_poll_interval()
          Returns the value of field 'snmp_poll_interval'.
 int getThreads()
          Returns the value of field 'threads'.
 boolean getUseBridgeDiscovery()
          Returns the value of field 'useBridgeDiscovery'.
 boolean getUseCdpDiscovery()
          Returns the value of field 'useCdpDiscovery'.
 boolean getUseIpRouteDiscovery()
          Returns the value of field 'useIpRouteDiscovery'.
 Vlans getVlans()
          Returns the value of field 'vlans'.
 boolean hasAutoDiscovery()
          Method hasAutoDiscovery
 boolean hasDiscovery_link_interval()
          Method hasDiscovery_link_interval
 boolean hasEnableDiscoveryDownload()
          Method hasEnableDiscoveryDownload
 boolean hasEnableVlanDiscovery()
          Method hasEnableVlanDiscovery
 boolean hasInitial_sleep_time()
          Method hasInitial_sleep_time
 boolean hasSaveRouteTable()
          Method hasSaveRouteTable
 boolean hasSaveStpInterfaceTable()
          Method hasSaveStpInterfaceTable
 boolean hasSaveStpNodeTable()
          Method hasSaveStpNodeTable
 boolean hasSnmp_poll_interval()
          Method hasSnmp_poll_interval
 boolean hasThreads()
          Method hasThreads
 boolean hasUseBridgeDiscovery()
          Method hasUseBridgeDiscovery
 boolean hasUseCdpDiscovery()
          Method hasUseCdpDiscovery
 boolean hasUseIpRouteDiscovery()
          Method hasUseIpRouteDiscovery
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removePackage(Package vPackage)
          Method removePackage
 void setAutoDiscovery(boolean autoDiscovery)
          Sets the value of field 'autoDiscovery'.
 void setDiscovery_link_interval(long discovery_link_interval)
          Sets the value of field 'discovery_link_interval'.
 void setEnableDiscoveryDownload(boolean enableDiscoveryDownload)
          Sets the value of field 'enableDiscoveryDownload'.
 void setEnableVlanDiscovery(boolean enableVlanDiscovery)
          Sets the value of field 'enableVlanDiscovery'.
 void setInitial_sleep_time(long initial_sleep_time)
          Sets the value of field 'initial_sleep_time'.
 void setPackage(java.util.ArrayList _packageCollection)
          Method setPackage Sets the value of '_package' by copying the given ArrayList.
 void setPackage(int index, Package vPackage)
          Method setPackage
 void setPackage(Package[] _packageArray)
          Method setPackage
 void setPackageCollection(java.util.ArrayList _packageCollection)
          Method setPackageCollection Sets the value of '_package' by setting it to the given ArrayList.
 void setSaveRouteTable(boolean saveRouteTable)
          Sets the value of field 'saveRouteTable'.
 void setSaveStpInterfaceTable(boolean saveStpInterfaceTable)
          Sets the value of field 'saveStpInterfaceTable'.
 void setSaveStpNodeTable(boolean saveStpNodeTable)
          Sets the value of field 'saveStpNodeTable'.
 void setSnmp_poll_interval(long snmp_poll_interval)
          Sets the value of field 'snmp_poll_interval'.
 void setThreads(int threads)
          Sets the value of field 'threads'.
 void setUseBridgeDiscovery(boolean useBridgeDiscovery)
          Sets the value of field 'useBridgeDiscovery'.
 void setUseCdpDiscovery(boolean useCdpDiscovery)
          Sets the value of field 'useCdpDiscovery'.
 void setUseIpRouteDiscovery(boolean useIpRouteDiscovery)
          Sets the value of field 'useIpRouteDiscovery'.
 void setVlans(Vlans vlans)
          Sets the value of field 'vlans'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkdConfiguration

public LinkdConfiguration()
Method Detail

addPackage

public void addPackage(Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method addPackage

Parameters:
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

addPackage

public void addPackage(int index,
                       Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method addPackage

Parameters:
index -
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

clearPackage

public void clearPackage()
Method clearPackage


deleteAutoDiscovery

public void deleteAutoDiscovery()
Method deleteAutoDiscovery


deleteDiscovery_link_interval

public void deleteDiscovery_link_interval()
Method deleteDiscovery_link_interval


deleteEnableDiscoveryDownload

public void deleteEnableDiscoveryDownload()
Method deleteEnableDiscoveryDownload


deleteEnableVlanDiscovery

public void deleteEnableVlanDiscovery()
Method deleteEnableVlanDiscovery


deleteInitial_sleep_time

public void deleteInitial_sleep_time()
Method deleteInitial_sleep_time


deleteSaveRouteTable

public void deleteSaveRouteTable()
Method deleteSaveRouteTable


deleteSaveStpInterfaceTable

public void deleteSaveStpInterfaceTable()
Method deleteSaveStpInterfaceTable


deleteSaveStpNodeTable

public void deleteSaveStpNodeTable()
Method deleteSaveStpNodeTable


deleteSnmp_poll_interval

public void deleteSnmp_poll_interval()
Method deleteSnmp_poll_interval


deleteThreads

public void deleteThreads()
Method deleteThreads


deleteUseBridgeDiscovery

public void deleteUseBridgeDiscovery()
Method deleteUseBridgeDiscovery


deleteUseCdpDiscovery

public void deleteUseCdpDiscovery()
Method deleteUseCdpDiscovery


deleteUseIpRouteDiscovery

public void deleteUseIpRouteDiscovery()
Method deleteUseIpRouteDiscovery


enumeratePackage

public java.util.Enumeration enumeratePackage()
Method enumeratePackage

Returns:
Enumeration

getAutoDiscovery

public boolean getAutoDiscovery()
Returns the value of field 'autoDiscovery'. The field 'autoDiscovery' has the following description: Whether Linkd should generate newSuspect events for ip addresses from devices unknown to OpenNMS. This flags overwrite auto-discovery package flags.

Returns:
boolean

getDiscovery_link_interval

public long getDiscovery_link_interval()
Returns the value of field 'discovery_link_interval'. The field 'discovery_link_interval' has the following description: Time interval in mill seconds from last snmp collection and link discovery.

Returns:
long

getEnableDiscoveryDownload

public boolean getEnableDiscoveryDownload()
Returns the value of field 'enableDiscoveryDownload'. The field 'enableDiscoveryDownload' has the following description: Whether DiscoveryLink should try to get specific snmp bridge info. Should be enabled only in very complex network where snmpCollection often fails.

Returns:
boolean

getEnableVlanDiscovery

public boolean getEnableVlanDiscovery()
Returns the value of field 'enableVlanDiscovery'. The field 'enableVlanDiscovery' has the following description: Whether SnmpCollection has to find Vlans on devices to performs snmp data (Bridge) collection .

Returns:
boolean

getInitial_sleep_time

public long getInitial_sleep_time()
Returns the value of field 'initial_sleep_time'. The field 'initial_sleep_time' has the following description: The initial sleep time in mill seconds before starting Snmp Collection.

Returns:
long

getPackage

public Package getPackage(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getPackage

Parameters:
index -
Returns:
Package
Throws:
java.lang.IndexOutOfBoundsException

getPackage

public Package[] getPackage()
Method getPackage

Returns:
Package

getPackageCollection

public java.util.ArrayList getPackageCollection()
Method getPackageCollection Returns a reference to '_package'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getPackageCount

public int getPackageCount()
Method getPackageCount

Returns:
int

getSaveRouteTable

public boolean getSaveRouteTable()
Returns the value of field 'saveRouteTable'. The field 'saveRouteTable' has the following description: Whether Linkd has save to database ip route tables

Returns:
boolean

getSaveStpInterfaceTable

public boolean getSaveStpInterfaceTable()
Returns the value of field 'saveStpInterfaceTable'. The field 'saveStpInterfaceTable' has the following description: Whether Linkd has to download Spanning Tree table on devices and save to database table stpinterface.

Returns:
boolean

getSaveStpNodeTable

public boolean getSaveStpNodeTable()
Returns the value of field 'saveStpNodeTable'. The field 'saveStpNodeTable' has the following description: Whether Linkd has save to database table stpnode.

Returns:
boolean

getSnmp_poll_interval

public long getSnmp_poll_interval()
Returns the value of field 'snmp_poll_interval'. The field 'snmp_poll_interval' has the following description: Snmp Poll Time interval in mill seconds.

Returns:
long

getThreads

public int getThreads()
Returns the value of field 'threads'. The field 'threads' has the following description: The max number of threads used for polling snmp devices.

Returns:
int

getUseBridgeDiscovery

public boolean getUseBridgeDiscovery()
Returns the value of field 'useBridgeDiscovery'. The field 'useBridgeDiscovery' has the following description: Whether DiscoveryLink has to find links on devices using bridge info.

Returns:
boolean

getUseCdpDiscovery

public boolean getUseCdpDiscovery()
Returns the value of field 'useCdpDiscovery'. The field 'useCdpDiscovery' has the following description: Whether Linkd has to find links on devices using cisco discovery protocol.

Returns:
boolean

getUseIpRouteDiscovery

public boolean getUseIpRouteDiscovery()
Returns the value of field 'useIpRouteDiscovery'. The field 'useIpRouteDiscovery' has the following description: Whether DiscoveryLink has to find links on devices using ip route tables.

Returns:
boolean

getVlans

public Vlans getVlans()
Returns the value of field 'vlans'. The field 'vlans' has the following description: A section to get specific Vendors Vlan informations.

Returns:
Vlans

hasAutoDiscovery

public boolean hasAutoDiscovery()
Method hasAutoDiscovery

Returns:
boolean

hasDiscovery_link_interval

public boolean hasDiscovery_link_interval()
Method hasDiscovery_link_interval

Returns:
boolean

hasEnableDiscoveryDownload

public boolean hasEnableDiscoveryDownload()
Method hasEnableDiscoveryDownload

Returns:
boolean

hasEnableVlanDiscovery

public boolean hasEnableVlanDiscovery()
Method hasEnableVlanDiscovery

Returns:
boolean

hasInitial_sleep_time

public boolean hasInitial_sleep_time()
Method hasInitial_sleep_time

Returns:
boolean

hasSaveRouteTable

public boolean hasSaveRouteTable()
Method hasSaveRouteTable

Returns:
boolean

hasSaveStpInterfaceTable

public boolean hasSaveStpInterfaceTable()
Method hasSaveStpInterfaceTable

Returns:
boolean

hasSaveStpNodeTable

public boolean hasSaveStpNodeTable()
Method hasSaveStpNodeTable

Returns:
boolean

hasSnmp_poll_interval

public boolean hasSnmp_poll_interval()
Method hasSnmp_poll_interval

Returns:
boolean

hasThreads

public boolean hasThreads()
Method hasThreads

Returns:
boolean

hasUseBridgeDiscovery

public boolean hasUseBridgeDiscovery()
Method hasUseBridgeDiscovery

Returns:
boolean

hasUseCdpDiscovery

public boolean hasUseCdpDiscovery()
Method hasUseCdpDiscovery

Returns:
boolean

hasUseIpRouteDiscovery

public boolean hasUseIpRouteDiscovery()
Method hasUseIpRouteDiscovery

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removePackage

public boolean removePackage(Package vPackage)
Method removePackage

Parameters:
vPackage -
Returns:
boolean

setAutoDiscovery

public void setAutoDiscovery(boolean autoDiscovery)
Sets the value of field 'autoDiscovery'. The field 'autoDiscovery' has the following description: Whether Linkd should generate newSuspect events for ip addresses from devices unknown to OpenNMS. This flags overwrite auto-discovery package flags.

Parameters:
autoDiscovery - the value of field 'autoDiscovery'.

setDiscovery_link_interval

public void setDiscovery_link_interval(long discovery_link_interval)
Sets the value of field 'discovery_link_interval'. The field 'discovery_link_interval' has the following description: Time interval in mill seconds from last snmp collection and link discovery.

Parameters:
discovery_link_interval - the value of field 'discovery_link_interval'.

setEnableDiscoveryDownload

public void setEnableDiscoveryDownload(boolean enableDiscoveryDownload)
Sets the value of field 'enableDiscoveryDownload'. The field 'enableDiscoveryDownload' has the following description: Whether DiscoveryLink should try to get specific snmp bridge info. Should be enabled only in very complex network where snmpCollection often fails.

Parameters:
enableDiscoveryDownload - the value of field 'enableDiscoveryDownload'.

setEnableVlanDiscovery

public void setEnableVlanDiscovery(boolean enableVlanDiscovery)
Sets the value of field 'enableVlanDiscovery'. The field 'enableVlanDiscovery' has the following description: Whether SnmpCollection has to find Vlans on devices to performs snmp data (Bridge) collection .

Parameters:
enableVlanDiscovery - the value of field 'enableVlanDiscovery'.

setInitial_sleep_time

public void setInitial_sleep_time(long initial_sleep_time)
Sets the value of field 'initial_sleep_time'. The field 'initial_sleep_time' has the following description: The initial sleep time in mill seconds before starting Snmp Collection.

Parameters:
initial_sleep_time - the value of field 'initial_sleep_time'.

setPackage

public void setPackage(int index,
                       Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method setPackage

Parameters:
index -
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

setPackage

public void setPackage(Package[] _packageArray)
Method setPackage

Parameters:
_packageArray -

setPackage

public void setPackage(java.util.ArrayList _packageCollection)
Method setPackage Sets the value of '_package' by copying the given ArrayList.

Parameters:
_packageCollection - the Vector to copy.

setPackageCollection

public void setPackageCollection(java.util.ArrayList _packageCollection)
Method setPackageCollection Sets the value of '_package' by setting it to the given ArrayList. No type checking is performed.

Parameters:
_packageCollection - the ArrayList to copy.

setSaveRouteTable

public void setSaveRouteTable(boolean saveRouteTable)
Sets the value of field 'saveRouteTable'. The field 'saveRouteTable' has the following description: Whether Linkd has save to database ip route tables

Parameters:
saveRouteTable - the value of field 'saveRouteTable'.

setSaveStpInterfaceTable

public void setSaveStpInterfaceTable(boolean saveStpInterfaceTable)
Sets the value of field 'saveStpInterfaceTable'. The field 'saveStpInterfaceTable' has the following description: Whether Linkd has to download Spanning Tree table on devices and save to database table stpinterface.

Parameters:
saveStpInterfaceTable - the value of field 'saveStpInterfaceTable'.

setSaveStpNodeTable

public void setSaveStpNodeTable(boolean saveStpNodeTable)
Sets the value of field 'saveStpNodeTable'. The field 'saveStpNodeTable' has the following description: Whether Linkd has save to database table stpnode.

Parameters:
saveStpNodeTable - the value of field 'saveStpNodeTable'

setSnmp_poll_interval

public void setSnmp_poll_interval(long snmp_poll_interval)
Sets the value of field 'snmp_poll_interval'. The field 'snmp_poll_interval' has the following description: Snmp Poll Time interval in mill seconds.

Parameters:
snmp_poll_interval - the value of field 'snmp_poll_interval'.

setThreads

public void setThreads(int threads)
Sets the value of field 'threads'. The field 'threads' has the following description: The max number of threads used for polling snmp devices.

Parameters:
threads - the value of field 'threads'.

setUseBridgeDiscovery

public void setUseBridgeDiscovery(boolean useBridgeDiscovery)
Sets the value of field 'useBridgeDiscovery'. The field 'useBridgeDiscovery' has the following description: Whether DiscoveryLink has to find links on devices using bridge info.

Parameters:
useBridgeDiscovery - the value of field 'useBridgeDiscovery'.

setUseCdpDiscovery

public void setUseCdpDiscovery(boolean useCdpDiscovery)
Sets the value of field 'useCdpDiscovery'. The field 'useCdpDiscovery' has the following description: Whether Linkd has to find links on devices using cisco discovery protocol.

Parameters:
useCdpDiscovery - the value of field 'useCdpDiscovery'.

setUseIpRouteDiscovery

public void setUseIpRouteDiscovery(boolean useIpRouteDiscovery)
Sets the value of field 'useIpRouteDiscovery'. The field 'useIpRouteDiscovery' has the following description: Whether DiscoveryLink has to find links on devices using ip route tables.

Parameters:
useIpRouteDiscovery - the value of field 'useIpRouteDiscovery'.

setVlans

public void setVlans(Vlans vlans)
Sets the value of field 'vlans'. The field 'vlans' has the following description: A section to get specific Vendors Vlan informations.

Parameters:
vlans - the value of field 'vlans'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.