Package org.opennms.netmgt.config
Class EnhancedLinkdConfigManager
- java.lang.Object
-
- org.opennms.netmgt.config.EnhancedLinkdConfigManager
-
- All Implemented Interfaces:
EnhancedLinkdConfig
- Direct Known Subclasses:
EnhancedLinkdConfigFactory
public abstract class EnhancedLinkdConfigManager extends Object implements EnhancedLinkdConfig
Abstract LinkdConfigManager class.
- Version:
- $Id: $
- Author:
- Antonio Russo
-
-
Field Summary
Fields Modifier and Type Field Description protected static EnlinkdConfiguration
m_config
Object containing all EnhancedLinkd-configuration objects parsed from the XML file
-
Constructor Summary
Constructors Constructor Description EnhancedLinkdConfigManager()
Constructor for LinkdConfigManager.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
disableBridgeVlanDiscovery()
long
getBridgeTopologyInterval()
getBridgeTopologyIntervalEnlinkdConfiguration
getConfiguration()
Return the linkd configuration object.int
getDiscoveryBridgeThreads()
getDiscoveryBridgeThreadslong
getInitialSleepTime()
getInitialSleepTimeint
getMaxBft()
getMaxBftLock
getReadLock()
long
getRescanInterval()
getRescanIntervalint
getThreads()
getThreadslong
getTopologyInterval()
getTopologyIntervalLock
getWriteLock()
protected abstract void
saveXml(String xml)
saveXmlboolean
useBridgeDiscovery()
useBridgeDiscoveryboolean
useCdpDiscovery()
useCdpDiscoveryboolean
useIsisDiscovery()
useIsisDiscoveryboolean
useLldpDiscovery()
useLldpDiscoveryboolean
useOspfDiscovery()
useOspfDiscovery-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.config.EnhancedLinkdConfig
reload, save
-
-
-
-
Field Detail
-
m_config
protected static EnlinkdConfiguration m_config
Object containing all EnhancedLinkd-configuration objects parsed from the XML file
-
-
Constructor Detail
-
EnhancedLinkdConfigManager
public EnhancedLinkdConfigManager()
Constructor for LinkdConfigManager.
- Parameters:
stream
- aInputStream
object.- Throws:
IOException
- if any.
-
-
Method Detail
-
getReadLock
public Lock getReadLock()
- Specified by:
getReadLock
in interfaceEnhancedLinkdConfig
-
getWriteLock
public Lock getWriteLock()
- Specified by:
getWriteLock
in interfaceEnhancedLinkdConfig
-
getConfiguration
public EnlinkdConfiguration getConfiguration()
Return the linkd configuration object.- Specified by:
getConfiguration
in interfaceEnhancedLinkdConfig
- Returns:
- a
org.opennms.netmgt.config.linkd.LinkdConfiguration
object.
-
useCdpDiscovery
public boolean useCdpDiscovery()
useCdpDiscovery
- Specified by:
useCdpDiscovery
in interfaceEnhancedLinkdConfig
- Returns:
- a boolean.
-
useBridgeDiscovery
public boolean useBridgeDiscovery()
useBridgeDiscovery
- Specified by:
useBridgeDiscovery
in interfaceEnhancedLinkdConfig
- Returns:
- a boolean.
-
useLldpDiscovery
public boolean useLldpDiscovery()
useLldpDiscovery
- Specified by:
useLldpDiscovery
in interfaceEnhancedLinkdConfig
- Returns:
- a boolean.
-
useOspfDiscovery
public boolean useOspfDiscovery()
useOspfDiscovery
- Specified by:
useOspfDiscovery
in interfaceEnhancedLinkdConfig
- Returns:
- a boolean.
-
useIsisDiscovery
public boolean useIsisDiscovery()
useIsisDiscovery
- Specified by:
useIsisDiscovery
in interfaceEnhancedLinkdConfig
- Returns:
- a boolean.
-
disableBridgeVlanDiscovery
public boolean disableBridgeVlanDiscovery()
- Specified by:
disableBridgeVlanDiscovery
in interfaceEnhancedLinkdConfig
-
getInitialSleepTime
public long getInitialSleepTime()
Description copied from interface:EnhancedLinkdConfig
getInitialSleepTime
- Specified by:
getInitialSleepTime
in interfaceEnhancedLinkdConfig
- Returns:
- a long.
-
getRescanInterval
public long getRescanInterval()
Description copied from interface:EnhancedLinkdConfig
getRescanInterval
- Specified by:
getRescanInterval
in interfaceEnhancedLinkdConfig
- Returns:
- a long.
-
getBridgeTopologyInterval
public long getBridgeTopologyInterval()
Description copied from interface:EnhancedLinkdConfig
getBridgeTopologyInterval
- Specified by:
getBridgeTopologyInterval
in interfaceEnhancedLinkdConfig
- Returns:
- a long.
-
getTopologyInterval
public long getTopologyInterval()
Description copied from interface:EnhancedLinkdConfig
getTopologyInterval
- Specified by:
getTopologyInterval
in interfaceEnhancedLinkdConfig
- Returns:
- a long.
-
getThreads
public int getThreads()
getThreads
- Specified by:
getThreads
in interfaceEnhancedLinkdConfig
- Returns:
- a int.
-
getMaxBft
public int getMaxBft()
Description copied from interface:EnhancedLinkdConfig
getMaxBft
- Specified by:
getMaxBft
in interfaceEnhancedLinkdConfig
- Returns:
- a int.
-
getDiscoveryBridgeThreads
public int getDiscoveryBridgeThreads()
Description copied from interface:EnhancedLinkdConfig
getDiscoveryBridgeThreads
- Specified by:
getDiscoveryBridgeThreads
in interfaceEnhancedLinkdConfig
- Returns:
- a int.
-
saveXml
protected abstract void saveXml(String xml) throws IOException
saveXml
- Parameters:
xml
- aString
object.- Throws:
IOException
- if any.
-
-