|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.LinkdConfigManager
public abstract class LinkdConfigManager
Abstract LinkdConfigManager class.
| Field Summary | |
|---|---|
protected static LinkdConfiguration |
m_config
Object containing all Linkd-configuration objects parsed from the XML file |
| Constructor Summary | |
|---|---|
LinkdConfigManager(InputStream stream)
Constructor for LinkdConfigManager. |
|
LinkdConfigManager(Reader reader)
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
autoDiscovery()
autoDiscovery |
void |
createPackageIpListMap()
This method is used to establish package against IP list mapping, with which, the IP list is selected per package via the configured filter rules from the database. |
boolean |
enableDiscoveryDownload()
enableDiscoveryDownload |
boolean |
enableVlanDiscovery()
enableVlanDiscovery |
Enumeration<Package> |
enumeratePackage()
enumeratePackage |
boolean |
forceIpRouteDiscoveryOnEthernet()
|
List<String> |
getAllPackageMatches(String ipaddr)
Returns true if the ip is part of atleast one package. |
LinkdConfiguration |
getConfiguration()
Return the linkd configuration object. |
String |
getDefaultIpRouteClassName()
|
long |
getDiscoveryLinkInterval()
getDiscoveryLinkInterval |
Package |
getFirstPackageMatch(String ipaddr)
Returns the first package that the ip belongs to, null if none. |
long |
getInitialSleepTime()
getInitialSleepTime |
List<String> |
getIpList(Package pkg)
Determine the list of IPs the filter rule for this package allows |
String |
getIpRouteClassName(String sysoid)
|
Package |
getPackage(String name)
getPackage |
long |
getSnmpPollInterval()
getSnmpPollInterval |
int |
getThreads()
getThreads |
String |
getVlanClassName(String sysoid)
getVlanClassName |
boolean |
hasClassName(String sysoid)
hasClassName |
boolean |
hasIpRouteClassName(String sysoid)
|
boolean |
interfaceInPackage(String iface,
Package pkg)
This method is used to determine if the named interface is included in the passed package definition. |
boolean |
interfaceInPackageRange(String iface,
Package pkg)
interfaceInPackageRange |
protected void |
reloadXML(InputStream stream)
reloadXML |
protected void |
reloadXML(Reader reader)
Deprecated. |
void |
save()
Saves the current in-memory configuration to disk and reloads |
boolean |
saveRouteTable()
saveRouteTable |
boolean |
saveStpInterfaceTable()
saveStpInterfaceTable |
boolean |
saveStpNodeTable()
saveStpNodeTable |
protected abstract void |
saveXml(String xml)
saveXml |
abstract void |
update()
update |
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 |
| Field Detail |
|---|
protected static LinkdConfiguration m_config
| Constructor Detail |
|---|
@Deprecated
public LinkdConfigManager(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
Constructor for LinkdConfigManager.
reader - a Reader object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
public LinkdConfigManager(InputStream stream)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
Constructor for LinkdConfigManager.
stream - a InputStream object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.| Method Detail |
|---|
public abstract void update()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
update
update in interface LinkdConfigIOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
protected abstract void saveXml(String xml)
throws IOException
saveXml
xml - a String object.
IOException - if any.public Package getPackage(String name)
getPackage
getPackage in interface LinkdConfigname - a String object.
Package object.public void createPackageIpListMap()
createPackageIpListMap in interface LinkdConfigpublic List<String> getIpList(Package pkg)
getIpList in interface LinkdConfigpkg - a Package object.
List object.public boolean useIpRouteDiscovery()
useIpRouteDiscovery
useIpRouteDiscovery in interface LinkdConfigpublic boolean saveRouteTable()
saveRouteTable
saveRouteTable in interface LinkdConfigpublic boolean useCdpDiscovery()
useCdpDiscovery
useCdpDiscovery in interface LinkdConfigpublic boolean useBridgeDiscovery()
useBridgeDiscovery
useBridgeDiscovery in interface LinkdConfigpublic boolean saveStpNodeTable()
saveStpNodeTable
saveStpNodeTable in interface LinkdConfigpublic boolean enableDiscoveryDownload()
enableDiscoveryDownload
enableDiscoveryDownload in interface LinkdConfigpublic boolean saveStpInterfaceTable()
saveStpInterfaceTable
saveStpInterfaceTable in interface LinkdConfigpublic long getInitialSleepTime()
LinkdConfiggetInitialSleepTime
getInitialSleepTime in interface LinkdConfigpublic long getSnmpPollInterval()
LinkdConfiggetSnmpPollInterval
getSnmpPollInterval in interface LinkdConfigpublic long getDiscoveryLinkInterval()
LinkdConfiggetDiscoveryLinkInterval
getDiscoveryLinkInterval in interface LinkdConfigpublic int getThreads()
getThreads
getThreads in interface LinkdConfigpublic LinkdConfiguration getConfiguration()
getConfiguration in interface LinkdConfigLinkdConfiguration object.public boolean autoDiscovery()
LinkdConfigautoDiscovery
autoDiscovery in interface LinkdConfigpublic boolean enableVlanDiscovery()
LinkdConfigenableVlanDiscovery
enableVlanDiscovery in interface LinkdConfigpublic String getIpRouteClassName(String sysoid)
getIpRouteClassName in interface LinkdConfigpublic String getDefaultIpRouteClassName()
getDefaultIpRouteClassName in interface LinkdConfigpublic String getVlanClassName(String sysoid)
getVlanClassName
getVlanClassName in interface LinkdConfigsysoid - a String object.
String object.public boolean hasIpRouteClassName(String sysoid)
hasIpRouteClassName in interface LinkdConfigpublic boolean hasClassName(String sysoid)
hasClassName
hasClassName in interface LinkdConfigsysoid - a String object.
public boolean interfaceInPackage(String iface,
Package pkg)
interfaceInPackage in interface LinkdConfigiface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.
public boolean interfaceInPackageRange(String iface,
Package pkg)
interfaceInPackageRange
interfaceInPackageRange in interface LinkdConfigiface - a String object.pkg - a org$opennms$netmgt$config$linkd$Package object.
@Deprecated
protected void reloadXML(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
reloadXML
reader - a Reader object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
protected void reloadXML(InputStream stream)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
reloadXML
stream - a InputStream object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
public void save()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
save in interface LinkdConfigorg.exolab.castor.xml.MarshalException - if any.
IOException - if any.
org.exolab.castor.xml.ValidationException - if any.public Package getFirstPackageMatch(String ipaddr)
getFirstPackageMatch in interface LinkdConfigipaddr - the interface to check
public List<String> getAllPackageMatches(String ipaddr)
getAllPackageMatches in interface LinkdConfigipaddr - a String object.
public Enumeration<Package> enumeratePackage()
enumeratePackage
enumeratePackage in interface LinkdConfigEnumeration object.public boolean forceIpRouteDiscoveryOnEthernet()
forceIpRouteDiscoveryOnEthernet in interface LinkdConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||