|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.CapsdConfigManager
public abstract class CapsdConfigManager
| Field Summary |
|---|
| Fields inherited from interface org.opennms.netmgt.config.CapsdConfig |
|---|
LAME_SNMP_HOST_IFINDEX |
| Constructor Summary | |
|---|---|
CapsdConfigManager()
|
|
CapsdConfigManager(Reader rdr)
|
|
| Method Summary | |
|---|---|
void |
addProtocolPlugin(ProtocolPlugin plugin)
|
InetAddress |
determinePrimarySnmpInterface(List<InetAddress> addressList,
boolean strict)
This method is responsbile for determining the node's primary SNMP interface from the specified list of InetAddress objects. |
boolean |
getAbortProtocolScansFlag()
Defines Capsd's behavior when, during a protocol scan, it gets a java.net.NoRouteToHostException exception. |
CapsdConfiguration |
getConfiguration()
Return the Capsd configuration object. |
List<String> |
getConfiguredProtocols()
Return a list of configured protocols from the loaded configuration. |
boolean |
getDeletePropagationEnabled()
|
long |
getInitialSleepTime()
|
int |
getMaxRescanThreadPoolSize()
|
int |
getMaxSuspectThreadPoolSize()
|
List<Property> |
getPluginProperties(ProtocolPlugin plugin)
|
List<Property> |
getProtocolConfigurationProperties(ProtocolConfiguration pluginConf)
|
List<ProtocolConfiguration> |
getProtocolConfigurations(ProtocolPlugin plugin)
|
ProtocolPlugin |
getProtocolPlugin(String svcName)
|
List<ProtocolPlugin> |
getProtocolPlugins()
|
List<Range> |
getRanges(ProtocolConfiguration pluginConf)
|
long |
getRescanFrequency()
|
SmbAuth |
getSmbAuth(String target)
Finds the SMB authentication object using the netbios name. |
List<String> |
getSpecifics(ProtocolConfiguration pluginConf)
|
String |
getXmlrpc()
Return the boolean xmlrpc as string to indicate if notification to external xmlrpc server is needed. |
boolean |
isAddressUnmanaged(InetAddress target)
Checks the configuration to determine if the target is managed or unmanaged. |
boolean |
isXmlRpcEnabled()
|
protected void |
loadXml(Reader rdr)
|
void |
save()
Saves the current in-memory configuration to disk and reloads |
protected abstract void |
saveXml(String xml)
|
long |
toLong(InetAddress addr)
Deprecated. Use org.opennms.netmgt.utils.IPSorter.convertToLong() instead. |
protected abstract void |
update()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CapsdConfigManager()
public CapsdConfigManager(Reader rdr)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException| Method Detail |
|---|
protected abstract void saveXml(String xml)
throws IOException
IOException
protected abstract void update()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void loadXml(Reader rdr)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void save()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
save in interface CapsdConfigorg.exolab.castor.xml.MarshalException
IOException
org.exolab.castor.xml.ValidationExceptionpublic CapsdConfiguration getConfiguration()
getConfiguration in interface CapsdConfigpublic ProtocolPlugin getProtocolPlugin(String svcName)
getProtocolPlugin in interface CapsdConfigpublic void addProtocolPlugin(ProtocolPlugin plugin)
addProtocolPlugin in interface CapsdConfigpublic SmbAuth getSmbAuth(String target)
getSmbAuth in interface CapsdConfigpublic boolean isAddressUnmanaged(InetAddress target)
isAddressUnmanaged in interface CapsdConfigtarget - The target to check against.public long getRescanFrequency()
getRescanFrequency in interface CapsdConfigpublic long getInitialSleepTime()
getInitialSleepTime in interface CapsdConfigpublic int getMaxSuspectThreadPoolSize()
getMaxSuspectThreadPoolSize in interface CapsdConfigpublic int getMaxRescanThreadPoolSize()
getMaxRescanThreadPoolSize in interface CapsdConfigpublic boolean getAbortProtocolScansFlag()
getAbortProtocolScansFlag in interface CapsdConfigpublic boolean getDeletePropagationEnabled()
getDeletePropagationEnabled in interface CapsdConfigpublic String getXmlrpc()
getXmlrpc in interface CapsdConfigpublic boolean isXmlRpcEnabled()
isXmlRpcEnabled in interface CapsdConfig
public InetAddress determinePrimarySnmpInterface(List<InetAddress> addressList,
boolean strict)
determinePrimarySnmpInterface in interface CapsdConfigaddressList - List of InetAddress objects representing all the interfaces
belonging to a particular node which support the "SNMP"
service and have a valid ifIndex.strict - Boolean variable which requires an interface to be part of a
Collectd package to be eligible as a primary SNMP interface
public long toLong(InetAddress addr)
long value. The address is converted in network byte order
(big endin). This is compatable with the number format of the JVM, and
thus the return longs can be compared with other converted IP Addresses
to determine inclusion.
toLong in interface CapsdConfigaddr - The IP address to convert.
public List<String> getConfiguredProtocols()
getConfiguredProtocols in interface CapsdConfigpublic List<ProtocolPlugin> getProtocolPlugins()
getProtocolPlugins in interface CapsdConfigpublic List<ProtocolConfiguration> getProtocolConfigurations(ProtocolPlugin plugin)
getProtocolConfigurations in interface CapsdConfigpublic List<Property> getPluginProperties(ProtocolPlugin plugin)
getPluginProperties in interface CapsdConfigpublic List<Property> getProtocolConfigurationProperties(ProtocolConfiguration pluginConf)
getProtocolConfigurationProperties in interface CapsdConfigpublic List<Range> getRanges(ProtocolConfiguration pluginConf)
getRanges in interface CapsdConfigpublic List<String> getSpecifics(ProtocolConfiguration pluginConf)
getSpecifics in interface CapsdConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||