|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.mock.MockLinkdConfig
public class MockLinkdConfig
| Constructor Summary | |
|---|---|
MockLinkdConfig()
|
|
| Method Summary | |
|---|---|
boolean |
enableDiscoveryDownload()
enableDiscoveryDownload |
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 |
save()
save |
boolean |
saveRouteTable()
saveRouteTable |
boolean |
saveStpInterfaceTable()
saveStpInterfaceTable |
boolean |
saveStpNodeTable()
saveStpNodeTable |
void |
update()
update |
void |
updatePackageIpListMap()
createPackageIpListMap |
boolean |
useBridgeDiscovery()
useBridgeDiscovery |
boolean |
useCdpDiscovery()
useCdpDiscovery |
boolean |
useIpRouteDiscovery()
useIpRouteDiscovery |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockLinkdConfig()
| Method Detail |
|---|
public List<InetAddress> getIpList(Package pkg)
LinkdConfig
getIpList in interface LinkdConfigpkg - a Package object.
List object.
public boolean isInterfaceInPackage(InetAddress iface,
Package pkg)
LinkdConfig
isInterfaceInPackage in interface LinkdConfigiface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.
public boolean isInterfaceInPackageRange(InetAddress iface,
Package pkg)
LinkdConfig
isInterfaceInPackageRange in interface LinkdConfigiface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.
public Package getFirstPackageMatch(InetAddress ipaddr)
LinkdConfig
getFirstPackageMatch in interface LinkdConfigipaddr - the interface to check
public List<String> getAllPackageMatches(InetAddress ipAddr)
LinkdConfig
getAllPackageMatches in interface LinkdConfigipAddr - a String object.
public boolean isAutoDiscoveryEnabled()
isAutoDiscoveryEnabled in interface LinkdConfigpublic boolean isVlanDiscoveryEnabled()
isVlanDiscoveryEnabled in interface LinkdConfigpublic Enumeration<Package> enumeratePackage()
LinkdConfigenumeratePackage
enumeratePackage in interface LinkdConfigEnumeration object.public Package getPackage(String pkgName)
LinkdConfiggetPackage
getPackage in interface LinkdConfigpkgName - a String object.
Package object.public int getThreads()
LinkdConfiggetThreads
getThreads in interface LinkdConfigpublic boolean enableDiscoveryDownload()
LinkdConfigenableDiscoveryDownload
enableDiscoveryDownload in interface LinkdConfigpublic boolean useIpRouteDiscovery()
LinkdConfiguseIpRouteDiscovery
useIpRouteDiscovery in interface LinkdConfigpublic boolean forceIpRouteDiscoveryOnEthernet()
forceIpRouteDiscoveryOnEthernet in interface LinkdConfigpublic boolean saveRouteTable()
LinkdConfigsaveRouteTable
saveRouteTable in interface LinkdConfigpublic boolean useCdpDiscovery()
LinkdConfiguseCdpDiscovery
useCdpDiscovery in interface LinkdConfigpublic boolean useBridgeDiscovery()
LinkdConfiguseBridgeDiscovery
useBridgeDiscovery in interface LinkdConfigpublic boolean saveStpNodeTable()
LinkdConfigsaveStpNodeTable
saveStpNodeTable in interface LinkdConfigpublic boolean saveStpInterfaceTable()
LinkdConfigsaveStpInterfaceTable
saveStpInterfaceTable in interface LinkdConfigpublic long getInitialSleepTime()
LinkdConfiggetInitialSleepTime
getInitialSleepTime in interface LinkdConfigpublic long getSnmpPollInterval()
LinkdConfiggetSnmpPollInterval
getSnmpPollInterval in interface LinkdConfigpublic long getDiscoveryLinkInterval()
LinkdConfiggetDiscoveryLinkInterval
getDiscoveryLinkInterval in interface LinkdConfig
public void update()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
LinkdConfigupdate
update in interface LinkdConfigIOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public void save()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
LinkdConfigsave
save in interface LinkdConfigorg.exolab.castor.xml.MarshalException - if any.
IOException - if any.
org.exolab.castor.xml.ValidationException - if any.public LinkdConfiguration getConfiguration()
LinkdConfiggetConfiguration
getConfiguration in interface LinkdConfigLinkdConfiguration object.public void updatePackageIpListMap()
LinkdConfigcreatePackageIpListMap
updatePackageIpListMap in interface LinkdConfigpublic String getVlanClassName(String sysoid)
LinkdConfiggetVlanClassName
getVlanClassName in interface LinkdConfigsysoid - a String object.
String object.public boolean hasClassName(String sysoid)
LinkdConfighasClassName
hasClassName in interface LinkdConfigsysoid - a String object.
public Lock getReadLock()
getReadLock in interface LinkdConfigpublic Lock getWriteLock()
getWriteLock in interface LinkdConfigpublic boolean hasIpRouteClassName(String sysoid)
hasIpRouteClassName in interface LinkdConfigpublic String getIpRouteClassName(String sysoid)
getIpRouteClassName in interface LinkdConfigpublic String getDefaultIpRouteClassName()
getDefaultIpRouteClassName in interface LinkdConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||