|
||||||||||
| 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
Abstract CapsdConfigManager class.
| Field Summary |
|---|
| Fields inherited from interface org.opennms.netmgt.config.CapsdConfig |
|---|
LAME_SNMP_HOST_IFINDEX |
| Constructor Summary | |
|---|---|
CapsdConfigManager()
Constructor for CapsdConfigManager. |
|
CapsdConfigManager(InputStream is)
Constructor for CapsdConfigManager. |
|
CapsdConfigManager(Reader rdr)
Constructor for CapsdConfigManager. |
|
| Method Summary | |
|---|---|
void |
addProtocolPlugin(ProtocolPlugin plugin)
addProtocolPlugin |
InetAddress |
determinePrimarySnmpInterface(List<InetAddress> addressList,
boolean strict)
determinePrimarySnmpInterface |
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()
getDeletePropagationEnabled |
long |
getInitialSleepTime()
getInitialSleepTime |
int |
getMaxRescanThreadPoolSize()
getMaxRescanThreadPoolSize |
int |
getMaxSuspectThreadPoolSize()
getMaxSuspectThreadPoolSize |
List<Property> |
getPluginProperties(ProtocolPlugin plugin)
getPluginProperties |
List<Property> |
getProtocolConfigurationProperties(ProtocolConfiguration pluginConf)
getProtocolConfigurationProperties |
List<ProtocolConfiguration> |
getProtocolConfigurations(ProtocolPlugin plugin)
getProtocolConfigurations |
ProtocolPlugin |
getProtocolPlugin(String svcName)
getProtocolPlugin |
List<ProtocolPlugin> |
getProtocolPlugins()
getProtocolPlugins |
List<Range> |
getRanges(ProtocolConfiguration pluginConf)
getRanges |
long |
getRescanFrequency()
getRescanFrequency |
SmbAuth |
getSmbAuth(String target)
Finds the SMB authentication object using the netbios name. |
List<String> |
getSpecifics(ProtocolConfiguration pluginConf)
getSpecifics |
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()
isXmlRpcEnabled |
protected void |
loadXml(InputStream is)
loadXml |
protected void |
loadXml(Reader rdr)
loadXml |
void |
save()
Saves the current in-memory configuration to disk and reloads |
protected abstract void |
saveXml(String xml)
saveXml |
protected abstract void |
update()
update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CapsdConfigManager()
Constructor for CapsdConfigManager.
public CapsdConfigManager(Reader rdr)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
Constructor for CapsdConfigManager.
rdr - a Reader object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public CapsdConfigManager(InputStream is)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
Constructor for CapsdConfigManager.
is - a InputStream object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.| Method Detail |
|---|
protected abstract void saveXml(String xml)
throws IOException
saveXml
xml - a String object.
IOException - if any.
protected abstract void update()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
update
IOException - if any.
FileNotFoundException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
protected void loadXml(InputStream is)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
loadXml
is - a InputStream object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
protected void loadXml(Reader rdr)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
loadXml
rdr - a Reader object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public void save()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
save in interface CapsdConfigorg.exolab.castor.xml.MarshalException - if any.
IOException - if any.
org.exolab.castor.xml.ValidationException - if any.public CapsdConfiguration getConfiguration()
getConfiguration in interface CapsdConfigCapsdConfiguration object.public ProtocolPlugin getProtocolPlugin(String svcName)
getProtocolPlugin
getProtocolPlugin in interface CapsdConfigsvcName - a String object.
ProtocolPlugin object.public void addProtocolPlugin(ProtocolPlugin plugin)
addProtocolPlugin
addProtocolPlugin in interface CapsdConfigplugin - a ProtocolPlugin object.public SmbAuth getSmbAuth(String target)
getSmbAuth in interface CapsdConfigtarget - a String object.
SmbAuth object.public boolean isAddressUnmanaged(InetAddress target)
isAddressUnmanaged in interface CapsdConfigtarget - The target to check against.
public long getRescanFrequency()
getRescanFrequency
getRescanFrequency in interface CapsdConfigpublic long getInitialSleepTime()
getInitialSleepTime
getInitialSleepTime in interface CapsdConfigpublic int getMaxSuspectThreadPoolSize()
getMaxSuspectThreadPoolSize
getMaxSuspectThreadPoolSize in interface CapsdConfigpublic int getMaxRescanThreadPoolSize()
getMaxRescanThreadPoolSize
getMaxRescanThreadPoolSize in interface CapsdConfigpublic boolean getAbortProtocolScansFlag()
getAbortProtocolScansFlag in interface CapsdConfigpublic boolean getDeletePropagationEnabled()
getDeletePropagationEnabled
getDeletePropagationEnabled in interface CapsdConfigpublic String getXmlrpc()
getXmlrpc in interface CapsdConfigpublic boolean isXmlRpcEnabled()
isXmlRpcEnabled
isXmlRpcEnabled in interface CapsdConfig
public InetAddress determinePrimarySnmpInterface(List<InetAddress> addressList,
boolean strict)
determinePrimarySnmpInterface
This method is responsbile for determining the node's primary SNMP interface from the specified list of InetAddress objects.
determinePrimarySnmpInterface in interface CapsdConfigaddressList - a List object.strict - a boolean.
InetAddress object.public List<String> getConfiguredProtocols()
getConfiguredProtocols in interface CapsdConfigList object.public List<ProtocolPlugin> getProtocolPlugins()
getProtocolPlugins
getProtocolPlugins in interface CapsdConfigList object.public List<ProtocolConfiguration> getProtocolConfigurations(ProtocolPlugin plugin)
getProtocolConfigurations
getProtocolConfigurations in interface CapsdConfigplugin - a ProtocolPlugin object.
List object.public List<Property> getPluginProperties(ProtocolPlugin plugin)
getPluginProperties
getPluginProperties in interface CapsdConfigplugin - a ProtocolPlugin object.
List object.public List<Property> getProtocolConfigurationProperties(ProtocolConfiguration pluginConf)
getProtocolConfigurationProperties
getProtocolConfigurationProperties in interface CapsdConfigpluginConf - a ProtocolConfiguration object.
List object.public List<Range> getRanges(ProtocolConfiguration pluginConf)
getRanges
getRanges in interface CapsdConfigpluginConf - a ProtocolConfiguration object.
List object.public List<String> getSpecifics(ProtocolConfiguration pluginConf)
getSpecifics
getSpecifics in interface CapsdConfigpluginConf - a ProtocolConfiguration object.
List object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||