org.opennms.netmgt.config.linkd
Class LinkdConfiguration

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

public class LinkdConfiguration
extends Object
implements 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)
           
 void addPackage(Package vPackage)
           
 void deleteAutoDiscovery()
           
 void deleteDiscovery_link_interval()
           
 void deleteEnableDiscoveryDownload()
           
 void deleteEnableVlanDiscovery()
           
 void deleteForceIpRouteDiscoveryOnEthernet()
           
 void deleteInitial_sleep_time()
           
 void deleteSaveRouteTable()
           
 void deleteSaveStpInterfaceTable()
           
 void deleteSaveStpNodeTable()
           
 void deleteSnmp_poll_interval()
           
 void deleteThreads()
           
 void deleteUseBridgeDiscovery()
           
 void deleteUseCdpDiscovery()
           
 void deleteUseIpRouteDiscovery()
           
 Enumeration<Package> 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'.
 boolean getForceIpRouteDiscoveryOnEthernet()
          Returns the value of field 'forceIpRouteDiscoveryOnEthernet'.
 long getInitial_sleep_time()
          Returns the value of field 'initial_sleep_time'.
 Package[] getPackage()
          Method getPackage.Returns the contents of the collection in an Array.
 Package getPackage(int index)
          Method getPackage.
 List<Package> getPackageCollection()
          Method getPackageCollection.Returns a reference to '_packageList'.
 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 hasForceIpRouteDiscoveryOnEthernet()
          Method hasForceIpRouteDiscoveryOnEthernet.
 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 isAutoDiscovery()
          Returns the value of field 'autoDiscovery'.
 boolean isEnableDiscoveryDownload()
          Returns the value of field 'enableDiscoveryDownload'.
 boolean isEnableVlanDiscovery()
          Returns the value of field 'enableVlanDiscovery'.
 boolean isForceIpRouteDiscoveryOnEthernet()
          Returns the value of field 'forceIpRouteDiscoveryOnEthernet'.
 boolean isSaveRouteTable()
          Returns the value of field 'saveRouteTable'.
 boolean isSaveStpInterfaceTable()
          Returns the value of field 'saveStpInterfaceTable'.
 boolean isSaveStpNodeTable()
          Returns the value of field 'saveStpNodeTable'.
 boolean isUseBridgeDiscovery()
          Returns the value of field 'useBridgeDiscovery'.
 boolean isUseCdpDiscovery()
          Returns the value of field 'useCdpDiscovery'.
 boolean isUseIpRouteDiscovery()
          Returns the value of field 'useIpRouteDiscovery'.
 boolean isValid()
          Method isValid.
 Iterator<Package> iteratePackage()
          Method iteratePackage.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void removeAllPackage()
           
 boolean removePackage(Package vPackage)
          Method removePackage.
 Package removePackageAt(int index)
          Method removePackageAt.
 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 setForceIpRouteDiscoveryOnEthernet(boolean forceIpRouteDiscoveryOnEthernet)
          Sets the value of field 'forceIpRouteDiscoveryOnEthernet'.
 void setInitial_sleep_time(long initial_sleep_time)
          Sets the value of field 'initial_sleep_time'.
 void setPackage(int index, Package vPackage)
           
 void setPackage(List<Package> vPackageList)
          Sets the value of '_packageList' by copying the given Vector.
 void setPackage(Package[] vPackageArray)
           
 void setPackageCollection(List<Package> _packageList)
          Deprecated.  
 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 LinkdConfiguration unmarshal(Reader reader)
          Method unmarshal.
 void 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 IndexOutOfBoundsException
Parameters:
vPackage -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addPackage

public void addPackage(int index,
                       Package vPackage)
                throws IndexOutOfBoundsException
Parameters:
index -
vPackage -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

deleteAutoDiscovery

public void deleteAutoDiscovery()

deleteDiscovery_link_interval

public void deleteDiscovery_link_interval()

deleteEnableDiscoveryDownload

public void deleteEnableDiscoveryDownload()

deleteEnableVlanDiscovery

public void deleteEnableVlanDiscovery()

deleteForceIpRouteDiscoveryOnEthernet

public void deleteForceIpRouteDiscoveryOnEthernet()

deleteInitial_sleep_time

public void deleteInitial_sleep_time()

deleteSaveRouteTable

public void deleteSaveRouteTable()

deleteSaveStpInterfaceTable

public void deleteSaveStpInterfaceTable()

deleteSaveStpNodeTable

public void deleteSaveStpNodeTable()

deleteSnmp_poll_interval

public void deleteSnmp_poll_interval()

deleteThreads

public void deleteThreads()

deleteUseBridgeDiscovery

public void deleteUseBridgeDiscovery()

deleteUseCdpDiscovery

public void deleteUseCdpDiscovery()

deleteUseIpRouteDiscovery

public void deleteUseIpRouteDiscovery()

enumeratePackage

public Enumeration<Package> enumeratePackage()
Method enumeratePackage.

Returns:
an Enumeration over all possible elements of this collection

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 unknown to OpenNMS found on nodes snmp tables.

Returns:
the value of field 'AutoDiscovery'.

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:
the value of field 'Discovery_link_interval'.

getEnableDiscoveryDownload

public boolean getEnableDiscoveryDownload()
Returns the value of field 'enableDiscoveryDownload'. The field 'enableDiscoveryDownload' has the following description: Whether Discovery Link should try to get specific snmp bridge info probably lost in snmp data collection. Should be enabled only in very complex network where snmpCollection often fails. Enabling this flags slows the discovery process a lot.

Returns:
the value of field 'EnableDiscoveryDownload'.

getEnableVlanDiscovery

public boolean getEnableVlanDiscovery()
Returns the value of field 'enableVlanDiscovery'. The field 'enableVlanDiscovery' has the following description: Whether SnmpCollection has to collect snmp Vlan tables on devices. The Vlan data collection is made using the classes defined in vlans elements.

Returns:
the value of field 'EnableVlanDiscovery'.

getForceIpRouteDiscoveryOnEthernet

public boolean getForceIpRouteDiscoveryOnEthernet()
Returns the value of field 'forceIpRouteDiscoveryOnEthernet'. The field 'forceIpRouteDiscoveryOnEthernet' has the following description: Whether Linkd has to find links using ip route tables on ethernet interfaces.

Returns:
the value of field 'ForceIpRouteDiscoveryOnEthernet'.

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:
the value of field 'Initial_sleep_time'.

getPackage

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

Parameters:
index -
Returns:
the value of the org.opennms.netmgt.config.linkd.Package at the given index
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getPackage

public Package[] getPackage()
Method getPackage.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getPackageCollection

public List<Package> getPackageCollection()
Method getPackageCollection.Returns a reference to '_packageList'. No type checking is performed on any modifications to the Vector.

Returns:
a reference to the Vector backing this class

getPackageCount

public int getPackageCount()
Method getPackageCount.

Returns:
the size of this collection

getSaveRouteTable

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

Returns:
the value of field 'SaveRouteTable'.

getSaveStpInterfaceTable

public boolean getSaveStpInterfaceTable()
Returns the value of field 'saveStpInterfaceTable'. The field 'saveStpInterfaceTable' has the following description: Whether Linkd has to save to database bridge interfaces informations to database.

Returns:
the value of field 'SaveStpInterfaceTable'.

getSaveStpNodeTable

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

Returns:
the value of field 'SaveStpNodeTable'.

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:
the value of field 'Snmp_poll_interval'.

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 and discovery links.

Returns:
the value of field 'Threads'.

getUseBridgeDiscovery

public boolean getUseBridgeDiscovery()
Returns the value of field 'useBridgeDiscovery'. The field 'useBridgeDiscovery' has the following description: Whether links discovery process should use snmp bridge and spanning tree tables.

Returns:
the value of field 'UseBridgeDiscovery'.

getUseCdpDiscovery

public boolean getUseCdpDiscovery()
Returns the value of field 'useCdpDiscovery'. The field 'useCdpDiscovery' has the following description: Whether links discovery process should use cisco discovery protocol snmp tables.

Returns:
the value of field 'UseCdpDiscovery'.

getUseIpRouteDiscovery

public boolean getUseIpRouteDiscovery()
Returns the value of field 'useIpRouteDiscovery'. The field 'useIpRouteDiscovery' has the following description: Whether links discovery process should use ip route tables.

Returns:
the value of field 'UseIpRouteDiscovery'.

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 that are used to get vlan tables on nodes.

Returns:
the value of field 'Vlans'.

hasAutoDiscovery

public boolean hasAutoDiscovery()
Method hasAutoDiscovery.

Returns:
true if at least one AutoDiscovery has been added

hasDiscovery_link_interval

public boolean hasDiscovery_link_interval()
Method hasDiscovery_link_interval.

Returns:
true if at least one Discovery_link_interval has been added

hasEnableDiscoveryDownload

public boolean hasEnableDiscoveryDownload()
Method hasEnableDiscoveryDownload.

Returns:
true if at least one EnableDiscoveryDownload has been added

hasEnableVlanDiscovery

public boolean hasEnableVlanDiscovery()
Method hasEnableVlanDiscovery.

Returns:
true if at least one EnableVlanDiscovery has been added

hasForceIpRouteDiscoveryOnEthernet

public boolean hasForceIpRouteDiscoveryOnEthernet()
Method hasForceIpRouteDiscoveryOnEthernet.

Returns:
true if at least one ForceIpRouteDiscoveryOnEthernet has been added

hasInitial_sleep_time

public boolean hasInitial_sleep_time()
Method hasInitial_sleep_time.

Returns:
true if at least one Initial_sleep_time has been adde

hasSaveRouteTable

public boolean hasSaveRouteTable()
Method hasSaveRouteTable.

Returns:
true if at least one SaveRouteTable has been added

hasSaveStpInterfaceTable

public boolean hasSaveStpInterfaceTable()
Method hasSaveStpInterfaceTable.

Returns:
true if at least one SaveStpInterfaceTable has been added

hasSaveStpNodeTable

public boolean hasSaveStpNodeTable()
Method hasSaveStpNodeTable.

Returns:
true if at least one SaveStpNodeTable has been added

hasSnmp_poll_interval

public boolean hasSnmp_poll_interval()
Method hasSnmp_poll_interval.

Returns:
true if at least one Snmp_poll_interval has been adde

hasThreads

public boolean hasThreads()
Method hasThreads.

Returns:
true if at least one Threads has been added

hasUseBridgeDiscovery

public boolean hasUseBridgeDiscovery()
Method hasUseBridgeDiscovery.

Returns:
true if at least one UseBridgeDiscovery has been adde

hasUseCdpDiscovery

public boolean hasUseCdpDiscovery()
Method hasUseCdpDiscovery.

Returns:
true if at least one UseCdpDiscovery has been added

hasUseIpRouteDiscovery

public boolean hasUseIpRouteDiscovery()
Method hasUseIpRouteDiscovery.

Returns:
true if at least one UseIpRouteDiscovery has been added

isAutoDiscovery

public boolean isAutoDiscovery()
Returns the value of field 'autoDiscovery'. The field 'autoDiscovery' has the following description: Whether Linkd should generate newSuspect events for ip addresses unknown to OpenNMS found on nodes snmp tables.

Returns:
the value of field 'AutoDiscovery'.

isEnableDiscoveryDownload

public boolean isEnableDiscoveryDownload()
Returns the value of field 'enableDiscoveryDownload'. The field 'enableDiscoveryDownload' has the following description: Whether Discovery Link should try to get specific snmp bridge info probably lost in snmp data collection. Should be enabled only in very complex network where snmpCollection often fails. Enabling this flags slows the discovery process a lot.

Returns:
the value of field 'EnableDiscoveryDownload'.

isEnableVlanDiscovery

public boolean isEnableVlanDiscovery()
Returns the value of field 'enableVlanDiscovery'. The field 'enableVlanDiscovery' has the following description: Whether SnmpCollection has to collect snmp Vlan tables on devices. The Vlan data collection is made using the classes defined in vlans elements.

Returns:
the value of field 'EnableVlanDiscovery'.

isForceIpRouteDiscoveryOnEthernet

public boolean isForceIpRouteDiscoveryOnEthernet()
Returns the value of field 'forceIpRouteDiscoveryOnEthernet'. The field 'forceIpRouteDiscoveryOnEthernet' has the following description: Whether Linkd has to find links using ip route tables on ethernet interfaces.

Returns:
the value of field 'ForceIpRouteDiscoveryOnEthernet'.

isSaveRouteTable

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

Returns:
the value of field 'SaveRouteTable'.

isSaveStpInterfaceTable

public boolean isSaveStpInterfaceTable()
Returns the value of field 'saveStpInterfaceTable'. The field 'saveStpInterfaceTable' has the following description: Whether Linkd has to save to database bridge interfaces informations to database.

Returns:
the value of field 'SaveStpInterfaceTable'.

isSaveStpNodeTable

public boolean isSaveStpNodeTable()
Returns the value of field 'saveStpNodeTable'. The field 'saveStpNodeTable' has the following description: Whether Linkd has save bridge base informations to database.

Returns:
the value of field 'SaveStpNodeTable'.

isUseBridgeDiscovery

public boolean isUseBridgeDiscovery()
Returns the value of field 'useBridgeDiscovery'. The field 'useBridgeDiscovery' has the following description: Whether links discovery process should use snmp bridge and spanning tree tables.

Returns:
the value of field 'UseBridgeDiscovery'.

isUseCdpDiscovery

public boolean isUseCdpDiscovery()
Returns the value of field 'useCdpDiscovery'. The field 'useCdpDiscovery' has the following description: Whether links discovery process should use cisco discovery protocol snmp tables.

Returns:
the value of field 'UseCdpDiscovery'.

isUseIpRouteDiscovery

public boolean isUseIpRouteDiscovery()
Returns the value of field 'useIpRouteDiscovery'. The field 'useIpRouteDiscovery' has the following description: Whether links discovery process should use ip route tables.

Returns:
the value of field 'UseIpRouteDiscovery'.

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

iteratePackage

public Iterator<Package> iteratePackage()
Method iteratePackage.

Returns:
an Iterator over all possible elements in this collection

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

removeAllPackage

public void removeAllPackage()

removePackage

public boolean removePackage(Package vPackage)
Method removePackage.

Parameters:
vPackage -
Returns:
true if the object was removed from the collection.

removePackageAt

public Package removePackageAt(int index)
Method removePackageAt.

Parameters:
index -
Returns:
the element removed from the collection

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 unknown to OpenNMS found on nodes snmp tables.

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 Discovery Link should try to get specific snmp bridge info probably lost in snmp data collection. Should be enabled only in very complex network where snmpCollection often fails. Enabling this flags slows the discovery process a lot.

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 collect snmp Vlan tables on devices. The Vlan data collection is made using the classes defined in vlans elements.

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

setForceIpRouteDiscoveryOnEthernet

public void setForceIpRouteDiscoveryOnEthernet(boolean forceIpRouteDiscoveryOnEthernet)
Sets the value of field 'forceIpRouteDiscoveryOnEthernet'. The field 'forceIpRouteDiscoveryOnEthernet' has the following description: Whether Linkd has to find links using ip route tables on ethernet interfaces.

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

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 IndexOutOfBoundsException
Parameters:
index -
vPackage -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setPackage

public void setPackage(Package[] vPackageArray)
Parameters:
vPackageArray -

setPackage

public void setPackage(List<Package> vPackageList)
Sets the value of '_packageList' by copying the given Vector. All elements will be checked for type safety.

Parameters:
vPackageList - the Vector to copy.

setPackageCollection

public void setPackageCollection(List<Package> _packageList)
Deprecated. 

Sets the value of '_packageList' by setting it to the given Vector. No type checking is performed.

Parameters:
_packageList - the Vector to set.

setSaveRouteTable

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

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 save to database bridge interfaces informations to database.

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 bridge base informations to database.

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 and discovery links.

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 links discovery process should use snmp bridge and spanning tree tables.

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 links discovery process should use cisco discovery protocol snmp tables.

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 links discovery process should use 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 that are used to get vlan tables on nodes.

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

unmarshal

public static LinkdConfiguration unmarshal(Reader reader)
                                    throws org.exolab.castor.xml.MarshalException,
                                           org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.linkd.LinkdConfiguration
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright © 2008. All Rights Reserved.