public interface LinkdConfig
LinkdConfig interface.
Modifier and Type | Method and Description |
---|---|
Enumeration<Package> |
enumeratePackage()
enumeratePackage
|
boolean |
forceIpRouteDiscoveryOnEthernet() |
List<String> |
getAllPackageMatches(InetAddress ipAddr)
Returns true if the IP is part of at least one package.
|
LinkdConfiguration |
getConfiguration()
getConfiguration
|
String |
getDefaultIpRouteClassName() |
long |
getDiscoveryLinkInterval()
getDiscoveryLinkInterval
|
Package |
getFirstPackageMatch(InetAddress ipaddr)
Returns the first package that the ip belongs to, null if none.
|
long |
getInitialSleepTime()
getInitialSleepTime
|
List<InetAddress> |
getIpList(Package pkg)
Determine the list of IPs the filter rule for this package allows
|
String |
getIpRouteClassName(String sysoid) |
Package |
getPackage(String pkgName)
getPackage
|
Lock |
getReadLock() |
long |
getSnmpPollInterval()
getSnmpPollInterval
|
int |
getThreads()
getThreads
|
String |
getVlanClassName(String sysoid)
getVlanClassName
|
Lock |
getWriteLock() |
boolean |
hasClassName(String sysoid)
hasClassName
|
boolean |
hasIpRouteClassName(String sysoid) |
boolean |
isAutoDiscoveryEnabled() |
boolean |
isInterfaceInPackage(InetAddress iface,
Package pkg)
This method is used to determine if the named interface is included in
the passed package definition.
|
boolean |
isInterfaceInPackageRange(InetAddress iface,
Package pkg)
This method is used to determine if the named interface is included in
the passed package definition.
|
boolean |
isVlanDiscoveryEnabled() |
void |
reload()
reload
|
void |
save()
save
|
boolean |
saveRouteTable()
saveRouteTable
|
boolean |
saveStpInterfaceTable()
saveStpInterfaceTable
|
boolean |
saveStpNodeTable()
saveStpNodeTable
|
void |
update()
update
|
boolean |
useBridgeDiscovery()
useBridgeDiscovery
|
boolean |
useCdpDiscovery()
useCdpDiscovery
|
boolean |
useIpRouteDiscovery()
useIpRouteDiscovery
|
boolean |
useIsIsDiscovery()
useIsIsDiscovery
|
boolean |
useLldpDiscovery()
useLldpDiscovery
|
boolean |
useOspfDiscovery()
useOspfDiscovery
|
boolean |
useWifiDiscovery()
useWifiDiscovery
|
List<InetAddress> getIpList(Package pkg)
boolean isInterfaceInPackage(InetAddress iface, Package pkg)
iface
- The interface to test against the package.pkg
- The package to check for the inclusion of the interface.boolean isInterfaceInPackageRange(InetAddress iface, Package pkg)
iface
- The interface to test against the package.pkg
- The package to check for the inclusion of the interface.Package getFirstPackageMatch(InetAddress ipaddr)
ipaddr
- the interface to checkList<String> getAllPackageMatches(InetAddress ipAddr)
ipAddr
- a String
object.boolean isAutoDiscoveryEnabled()
boolean isVlanDiscoveryEnabled()
Enumeration<Package> enumeratePackage()
enumeratePackage
Enumeration
object.int getThreads()
getThreads
boolean useIpRouteDiscovery()
useIpRouteDiscovery
boolean forceIpRouteDiscoveryOnEthernet()
boolean saveRouteTable()
saveRouteTable
boolean useCdpDiscovery()
useCdpDiscovery
boolean useBridgeDiscovery()
useBridgeDiscovery
boolean useLldpDiscovery()
useLldpDiscovery
boolean useOspfDiscovery()
useOspfDiscovery
boolean useIsIsDiscovery()
useIsIsDiscovery
boolean useWifiDiscovery()
useWifiDiscovery
boolean saveStpNodeTable()
saveStpNodeTable
boolean saveStpInterfaceTable()
saveStpInterfaceTable
long getInitialSleepTime()
getInitialSleepTime
long getSnmpPollInterval()
getSnmpPollInterval
long getDiscoveryLinkInterval()
getDiscoveryLinkInterval
void reload() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reload
Reload the configuration file
IOException
- if any.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.void save() throws org.exolab.castor.xml.MarshalException, IOException, org.exolab.castor.xml.ValidationException
save
org.exolab.castor.xml.MarshalException
- if any.IOException
- if any.org.exolab.castor.xml.ValidationException
- if any.void update()
update
update the global helper objects
this calls the update of the following maps
packageIpListMap
urlIpMap
IpRouteClassNameMap
VlanClassNameMap
LinkdConfiguration getConfiguration()
getConfiguration
LinkdConfiguration
object.boolean hasClassName(String sysoid)
hasClassName
sysoid
- a String
object.Lock getReadLock()
Lock getWriteLock()
boolean hasIpRouteClassName(String sysoid)
String getDefaultIpRouteClassName()
Copyright © 2015. All rights reserved.