|
|||||||||
| 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
| Field Summary | |
|---|---|
protected static org.opennms.netmgt.config.linkd.LinkdConfiguration |
m_config
Object containing all Linkd-configuration objects parsed from the xml file |
| Constructor Summary | |
|---|---|
LinkdConfigManager(java.io.Reader reader,
java.lang.String localServer,
boolean verifyServer)
|
|
| Method Summary | |
|---|---|
boolean |
autoDiscovery()
|
void |
createPackageIpListMap()
This method is used to establish package agaist iplist mapping, with which, the iplist is selected per package via the configured filter rules from the database. |
boolean |
enableDiscoveryDownload()
|
boolean |
enableVlanDiscovery()
|
java.util.Enumeration |
enumeratePackage()
|
java.util.List<java.lang.String> |
getAllPackageMatches(java.lang.String ipaddr)
Returns a list of package names that the ip belongs to, null if none. |
java.lang.String |
getClassName(java.lang.String sysoid)
|
org.opennms.netmgt.config.linkd.LinkdConfiguration |
getConfiguration()
Return the linkd configuration object. |
DiscoveryLink |
getDiscoveryLink(java.lang.String pkgName)
|
long |
getDiscoveryLinkInterval()
|
org.opennms.netmgt.config.linkd.Package |
getFirstPackageMatch(java.lang.String ipaddr)
Returns the first package that the ip belongs to, null if none. |
long |
getInitialSleepTime()
|
java.util.List<java.lang.String> |
getIpList(org.opennms.netmgt.config.linkd.Package pkg)
Determine the list of IPs the filter rule for this package allows |
org.opennms.netmgt.config.linkd.Package |
getPackage(java.lang.String name)
|
SnmpCollection |
getSnmpCollection(java.lang.String ipaddr,
java.lang.String sysoid,
java.lang.String pkgName)
|
java.util.List<SnmpCollection> |
getSnmpCollections(java.lang.String ipaddr,
java.lang.String sysoid)
|
long |
getSnmpPollInterval()
|
int |
getThreads()
|
boolean |
hasClassName(java.lang.String sysoid)
|
boolean |
interfaceInPackage(java.lang.String iface,
org.opennms.netmgt.config.linkd.Package pkg)
This method is used to determine if the named interface is included in the passed package definition. |
protected void |
reloadXML(java.io.Reader reader)
|
void |
save()
Saves the current in-memory configuration to disk and reloads |
boolean |
saveRouteTable()
|
boolean |
saveStpInterfaceTable()
|
boolean |
saveStpNodeTable()
|
protected abstract void |
saveXml(java.lang.String xml)
|
abstract void |
update()
|
boolean |
useBridgeDiscovery()
|
boolean |
useCdpDiscovery()
|
boolean |
useIpRouteDiscovery()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.opennms.netmgt.config.linkd.LinkdConfiguration m_config
| Constructor Detail |
|---|
public LinkdConfigManager(java.io.Reader reader,
java.lang.String localServer,
boolean verifyServer)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
java.io.IOException
reader - localServer - verifyServer -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException| Method Detail |
|---|
public abstract void update()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
update in interface LinkdConfigjava.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected abstract void saveXml(java.lang.String xml)
throws java.io.IOException
java.io.IOExceptionpublic org.opennms.netmgt.config.linkd.Package getPackage(java.lang.String name)
getPackage in interface LinkdConfigpublic void createPackageIpListMap()
createPackageIpListMap in interface LinkdConfigpublic java.util.List<java.lang.String> getIpList(org.opennms.netmgt.config.linkd.Package pkg)
LinkdConfig
getIpList in interface LinkdConfigpublic boolean useIpRouteDiscovery()
useIpRouteDiscovery in interface LinkdConfigpublic boolean saveRouteTable()
saveRouteTable in interface LinkdConfigpublic boolean useCdpDiscovery()
useCdpDiscovery in interface LinkdConfigpublic boolean useBridgeDiscovery()
useBridgeDiscovery in interface LinkdConfigpublic boolean saveStpNodeTable()
saveStpNodeTable in interface LinkdConfigpublic boolean enableDiscoveryDownload()
enableDiscoveryDownload in interface LinkdConfigpublic boolean saveStpInterfaceTable()
saveStpInterfaceTable in interface LinkdConfigpublic long getInitialSleepTime()
getInitialSleepTime in interface LinkdConfigpublic long getSnmpPollInterval()
getSnmpPollInterval in interface LinkdConfigpublic long getDiscoveryLinkInterval()
getDiscoveryLinkInterval in interface LinkdConfigpublic int getThreads()
getThreads in interface LinkdConfigpublic org.opennms.netmgt.config.linkd.LinkdConfiguration getConfiguration()
getConfiguration in interface LinkdConfigpublic boolean autoDiscovery()
autoDiscovery in interface LinkdConfigpublic boolean enableVlanDiscovery()
enableVlanDiscovery in interface LinkdConfigpublic java.lang.String getClassName(java.lang.String sysoid)
getClassName in interface LinkdConfigpublic boolean hasClassName(java.lang.String sysoid)
hasClassName in interface LinkdConfig
public boolean interfaceInPackage(java.lang.String iface,
org.opennms.netmgt.config.linkd.Package pkg)
interfaceInPackage in interface LinkdConfigiface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.
protected void reloadXML(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException
public void save()
throws org.exolab.castor.xml.MarshalException,
java.io.IOException,
org.exolab.castor.xml.ValidationException
save in interface LinkdConfigorg.exolab.castor.xml.MarshalException
java.io.IOException
org.exolab.castor.xml.ValidationException
public java.util.List<SnmpCollection> getSnmpCollections(java.lang.String ipaddr,
java.lang.String sysoid)
getSnmpCollections in interface LinkdConfig
public SnmpCollection getSnmpCollection(java.lang.String ipaddr,
java.lang.String sysoid,
java.lang.String pkgName)
getSnmpCollection in interface LinkdConfigpublic org.opennms.netmgt.config.linkd.Package getFirstPackageMatch(java.lang.String ipaddr)
getFirstPackageMatch in interface LinkdConfigipaddr - the interface to check
public java.util.List<java.lang.String> getAllPackageMatches(java.lang.String ipaddr)
getAllPackageMatches in interface LinkdConfigipaddr - the interface to check
public java.util.Enumeration enumeratePackage()
enumeratePackage in interface LinkdConfigpublic DiscoveryLink getDiscoveryLink(java.lang.String pkgName)
getDiscoveryLink in interface LinkdConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||