|
|||||||||
| 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 LinkdConfiguration |
m_config
Object containing all Linkd-configuration objects parsed from the xml file |
| Constructor Summary | |
|---|---|
LinkdConfigManager(Reader reader)
|
|
| 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()
|
Enumeration |
enumeratePackage()
|
List<String> |
getAllPackageMatches(String ipaddr)
Returns a list of package names that the ip belongs to, null if none. |
String |
getClassName(String sysoid)
|
LinkdConfiguration |
getConfiguration()
Return the linkd configuration object. |
DiscoveryLink |
getDiscoveryLink(String pkgName)
|
long |
getDiscoveryLinkInterval()
|
Package |
getFirstPackageMatch(String ipaddr)
Returns the first package that the ip belongs to, null if none. |
long |
getInitialSleepTime()
|
List<String> |
getIpList(Package pkg)
Determine the list of IPs the filter rule for this package allows |
Package |
getPackage(String name)
|
SnmpCollection |
getSnmpCollection(String ipaddr,
String sysoid,
String pkgName)
|
List<SnmpCollection> |
getSnmpCollections(String ipaddr,
String sysoid)
|
long |
getSnmpPollInterval()
|
int |
getThreads()
|
boolean |
hasClassName(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)
This method is used to determine if the named interface is included in the passed package definition. |
protected void |
reloadXML(Reader reader)
|
void |
save()
Saves the current in-memory configuration to disk and reloads |
boolean |
saveRouteTable()
|
boolean |
saveStpInterfaceTable()
|
boolean |
saveStpNodeTable()
|
protected abstract void |
saveXml(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 LinkdConfiguration m_config
| Constructor Detail |
|---|
public LinkdConfigManager(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
reader - localServer - verifyServer -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException| Method Detail |
|---|
public abstract void update()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
update in interface LinkdConfigIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected abstract void saveXml(String xml)
throws IOException
IOExceptionpublic Package getPackage(String name)
getPackage in interface LinkdConfigpublic void createPackageIpListMap()
createPackageIpListMap in interface LinkdConfigpublic List<String> getIpList(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 LinkdConfiguration getConfiguration()
getConfiguration in interface LinkdConfigpublic boolean autoDiscovery()
autoDiscovery in interface LinkdConfigpublic boolean enableVlanDiscovery()
enableVlanDiscovery in interface LinkdConfigpublic String getClassName(String sysoid)
getClassName in interface LinkdConfigpublic boolean hasClassName(String sysoid)
hasClassName in interface LinkdConfig
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)
LinkdConfig
interfaceInPackageRange in interface LinkdConfigiface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.
protected void reloadXML(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
public void save()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
save in interface LinkdConfigorg.exolab.castor.xml.MarshalException
IOException
org.exolab.castor.xml.ValidationException
public List<SnmpCollection> getSnmpCollections(String ipaddr,
String sysoid)
getSnmpCollections in interface LinkdConfig
public SnmpCollection getSnmpCollection(String ipaddr,
String sysoid,
String pkgName)
getSnmpCollection in interface LinkdConfigpublic Package getFirstPackageMatch(String ipaddr)
getFirstPackageMatch in interface LinkdConfigipaddr - the interface to check
public List<String> getAllPackageMatches(String ipaddr)
getAllPackageMatches in interface LinkdConfigipaddr - the interface to check
public Enumeration enumeratePackage()
enumeratePackage in interface LinkdConfigpublic DiscoveryLink getDiscoveryLink(String pkgName)
getDiscoveryLink in interface LinkdConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||