|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.SnmpInterfacePollerConfigManager
public abstract class SnmpInterfacePollerConfigManager
| Constructor Summary | |
|---|---|
SnmpInterfacePollerConfigManager(InputStream stream,
String localServer,
boolean verifyServer)
|
|
SnmpInterfacePollerConfigManager(Reader reader,
String localServer,
boolean verifyServer)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addPackage(Package pkg)
|
Enumeration<Package> |
enumeratePackage()
|
List<String> |
getAllPackageMatches(String ipaddr)
Returns a list of package names that the IP belongs to, null if none. |
SnmpInterfacePollerConfiguration |
getConfiguration()
Return the poller configuration object. |
String[] |
getCriticalServiceIds()
This method returns the configured critical service name. |
List<String> |
getIpList(Package pkg)
|
Package |
getPackage(String name)
|
Package |
getPackageForAddress(String ipaddr)
Returns the first package that the ip belongs to, null if none. |
String |
getService()
|
int |
getThreads()
|
Iterable<String> |
includeURLs(Package pkg)
|
boolean |
interfaceInPackage(String iface,
Package pkg)
This method is used to determine if the named interface is included in the passed package definition. |
Iterable<Package> |
packages()
|
void |
rebuildPackageIpListMap()
This method is used to rebuild the package against IP list mapping when needed. |
protected void |
reloadXML(InputStream stream)
|
protected void |
reloadXML(Reader reader)
Deprecated. |
void |
save()
Saves the current in-memory configuration to disk and reloads |
protected abstract void |
saveXml(String xml)
|
boolean |
suppressAdminDownEvent()
|
abstract void |
update()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public SnmpInterfacePollerConfigManager(Reader reader,
String localServer,
boolean verifyServer)
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
public SnmpInterfacePollerConfigManager(InputStream stream,
String localServer,
boolean verifyServer)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
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 SnmpInterfacePollerConfigIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected abstract void saveXml(String xml)
throws IOException
IOException
protected void reloadXML(InputStream stream)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
@Deprecated
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
org.exolab.castor.xml.MarshalException
IOException
org.exolab.castor.xml.ValidationExceptionpublic SnmpInterfacePollerConfiguration getConfiguration()
public Package getPackage(String name)
getPackage in interface SnmpInterfacePollerConfigpublic void addPackage(Package pkg)
public String[] getCriticalServiceIds()
getCriticalServiceIds in interface SnmpInterfacePollerConfigpublic List<String> getIpList(Package pkg)
public void rebuildPackageIpListMap()
rebuildPackageIpListMap in interface SnmpInterfacePollerConfig
public boolean interfaceInPackage(String iface,
Package pkg)
interfaceInPackage in interface SnmpInterfacePollerConfigiface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.
public Package getPackageForAddress(String ipaddr)
getPackageForAddress in interface SnmpInterfacePollerConfigipaddr - the interface to check
public List<String> getAllPackageMatches(String ipaddr)
getAllPackageMatches in interface SnmpInterfacePollerConfigipaddr - the interface to check
public Enumeration<Package> enumeratePackage()
enumeratePackage in interface SnmpInterfacePollerConfigpublic Iterable<Package> packages()
packages in interface SnmpInterfacePollerConfigpublic Iterable<String> includeURLs(Package pkg)
public boolean suppressAdminDownEvent()
suppressAdminDownEvent in interface SnmpInterfacePollerConfigpublic int getThreads()
getThreads in interface SnmpInterfacePollerConfigpublic String getService()
getService in interface SnmpInterfacePollerConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||