public abstract class CapsdConfigManager extends Object implements CapsdConfig
Abstract CapsdConfigManager class.
LAME_SNMP_HOST_IFINDEX| Constructor and Description |
|---|
CapsdConfigManager()
Constructor for CapsdConfigManager.
|
CapsdConfigManager(InputStream is)
Constructor for CapsdConfigManager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProtocolPlugin(ProtocolPlugin plugin)
addProtocolPlugin
|
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
|
void |
save()
Saves the current in-memory configuration to disk and reloads
|
protected abstract void |
saveXml(String xml)
saveXml
|
protected abstract void |
update()
update
|
public CapsdConfigManager()
Constructor for CapsdConfigManager.
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.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.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 CapsdConfigpublic 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.Copyright © 2015. All rights reserved.