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 CapsdConfig
org.exolab.castor.xml.MarshalException
- if any.IOException
- if any.org.exolab.castor.xml.ValidationException
- if any.public CapsdConfiguration getConfiguration()
getConfiguration
in interface CapsdConfig
CapsdConfiguration
object.public ProtocolPlugin getProtocolPlugin(String svcName)
getProtocolPlugin
getProtocolPlugin
in interface CapsdConfig
svcName
- a String
object.ProtocolPlugin
object.public void addProtocolPlugin(ProtocolPlugin plugin)
addProtocolPlugin
addProtocolPlugin
in interface CapsdConfig
plugin
- a ProtocolPlugin
object.public SmbAuth getSmbAuth(String target)
getSmbAuth
in interface CapsdConfig
target
- a String
object.SmbAuth
object.public boolean isAddressUnmanaged(InetAddress target)
isAddressUnmanaged
in interface CapsdConfig
target
- The target to check against.public long getRescanFrequency()
getRescanFrequency
getRescanFrequency
in interface CapsdConfig
public long getInitialSleepTime()
getInitialSleepTime
getInitialSleepTime
in interface CapsdConfig
public int getMaxSuspectThreadPoolSize()
getMaxSuspectThreadPoolSize
getMaxSuspectThreadPoolSize
in interface CapsdConfig
public int getMaxRescanThreadPoolSize()
getMaxRescanThreadPoolSize
getMaxRescanThreadPoolSize
in interface CapsdConfig
public boolean getAbortProtocolScansFlag()
getAbortProtocolScansFlag
in interface CapsdConfig
public boolean getDeletePropagationEnabled()
getDeletePropagationEnabled
getDeletePropagationEnabled
in interface CapsdConfig
public String getXmlrpc()
getXmlrpc
in interface CapsdConfig
public boolean isXmlRpcEnabled()
isXmlRpcEnabled
isXmlRpcEnabled
in interface CapsdConfig
public List<String> getConfiguredProtocols()
getConfiguredProtocols
in interface CapsdConfig
List
object.public List<ProtocolPlugin> getProtocolPlugins()
getProtocolPlugins
getProtocolPlugins
in interface CapsdConfig
List
object.public List<ProtocolConfiguration> getProtocolConfigurations(ProtocolPlugin plugin)
getProtocolConfigurations
getProtocolConfigurations
in interface CapsdConfig
plugin
- a ProtocolPlugin
object.List
object.public List<Property> getPluginProperties(ProtocolPlugin plugin)
getPluginProperties
getPluginProperties
in interface CapsdConfig
plugin
- a ProtocolPlugin
object.List
object.public List<Property> getProtocolConfigurationProperties(ProtocolConfiguration pluginConf)
getProtocolConfigurationProperties
getProtocolConfigurationProperties
in interface CapsdConfig
pluginConf
- a ProtocolConfiguration
object.List
object.public List<Range> getRanges(ProtocolConfiguration pluginConf)
getRanges
getRanges
in interface CapsdConfig
pluginConf
- a ProtocolConfiguration
object.List
object.public List<String> getSpecifics(ProtocolConfiguration pluginConf)
getSpecifics
getSpecifics
in interface CapsdConfig
pluginConf
- a ProtocolConfiguration
object.List
object.Copyright © 2017. All rights reserved.