org.opennms.netmgt.config.capsd
Class CapsdConfiguration

java.lang.Object
  extended by org.opennms.netmgt.config.capsd.CapsdConfiguration
All Implemented Interfaces:
java.io.Serializable

public class CapsdConfiguration
extends java.lang.Object
implements java.io.Serializable

Top-level element for the capsd-configuration.xml configuration file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
CapsdConfiguration()
           
 
Method Summary
 void addIpManagement(int index, IpManagement vIpManagement)
          Method addIpManagement
 void addIpManagement(IpManagement vIpManagement)
          Method addIpManagement
 void addProtocolPlugin(int index, ProtocolPlugin vProtocolPlugin)
          Method addProtocolPlugin
 void addProtocolPlugin(ProtocolPlugin vProtocolPlugin)
          Method addProtocolPlugin
 void clearIpManagement()
          Method clearIpManagement
 void clearProtocolPlugin()
          Method clearProtocolPlugin
 void deleteInitialSleepTime()
          Method deleteInitialSleepTime
 void deleteMaxRescanThreadPoolSize()
          Method deleteMaxRescanThreadPoolSize
 void deleteMaxSuspectThreadPoolSize()
          Method deleteMaxSuspectThreadPoolSize
 void deleteRescanFrequency()
          Method deleteRescanFrequency
 java.util.Enumeration enumerateIpManagement()
          Method enumerateIpManagement
 java.util.Enumeration enumerateProtocolPlugin()
          Method enumerateProtocolPlugin
 java.lang.String getAbortProtocolScansIfNoRoute()
          Returns the value of field 'abortProtocolScansIfNoRoute'.
 java.lang.String getDeletePropagationEnabled()
          Returns the value of field 'deletePropagationEnabled'.
 long getInitialSleepTime()
          Returns the value of field 'initialSleepTime'.
 IpManagement[] getIpManagement()
          Method getIpManagement
 IpManagement getIpManagement(int index)
          Method getIpManagement
 java.util.ArrayList getIpManagementCollection()
          Method getIpManagementCollection Returns a reference to 'ipManagement'.
 int getIpManagementCount()
          Method getIpManagementCount
 java.lang.String getManagementPolicy()
          Returns the value of field 'managementPolicy'.
 int getMaxRescanThreadPoolSize()
          Returns the value of field 'maxRescanThreadPoolSize'.
 int getMaxSuspectThreadPoolSize()
          Returns the value of field 'maxSuspectThreadPoolSize'.
 ProtocolPlugin[] getProtocolPlugin()
          Method getProtocolPlugin
 ProtocolPlugin getProtocolPlugin(int index)
          Method getProtocolPlugin
 java.util.ArrayList getProtocolPluginCollection()
          Method getProtocolPluginCollection Returns a reference to 'protocolPlugin'.
 int getProtocolPluginCount()
          Method getProtocolPluginCount
 long getRescanFrequency()
          Returns the value of field 'rescanFrequency'.
 SmbConfig getSmbConfig()
          Returns the value of field 'smbConfig'.
 java.lang.String getXmlrpc()
          Returns the value of field 'xmlrpc'.
 boolean hasInitialSleepTime()
          Method hasInitialSleepTime
 boolean hasMaxRescanThreadPoolSize()
          Method hasMaxRescanThreadPoolSize
 boolean hasMaxSuspectThreadPoolSize()
          Method hasMaxSuspectThreadPoolSize
 boolean hasRescanFrequency()
          Method hasRescanFrequency
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeIpManagement(IpManagement vIpManagement)
          Method removeIpManagement
 boolean removeProtocolPlugin(ProtocolPlugin vProtocolPlugin)
          Method removeProtocolPlugin
 void setAbortProtocolScansIfNoRoute(java.lang.String abortProtocolScansIfNoRoute)
          Sets the value of field 'abortProtocolScansIfNoRoute'.
 void setDeletePropagationEnabled(java.lang.String deletePropagationEnabled)
          Sets the value of field 'deletePropagationEnabled'.
 void setInitialSleepTime(long initialSleepTime)
          Sets the value of field 'initialSleepTime'.
 void setIpManagement(java.util.ArrayList ipManagementCollection)
          Method setIpManagement Sets the value of 'ipManagement' by copying the given ArrayList.
 void setIpManagement(int index, IpManagement vIpManagement)
          Method setIpManagement
 void setIpManagement(IpManagement[] ipManagementArray)
          Method setIpManagement
 void setIpManagementCollection(java.util.ArrayList ipManagementCollection)
          Method setIpManagementCollection Sets the value of 'ipManagement' by setting it to the given ArrayList.
 void setManagementPolicy(java.lang.String managementPolicy)
          Sets the value of field 'managementPolicy'.
 void setMaxRescanThreadPoolSize(int maxRescanThreadPoolSize)
          Sets the value of field 'maxRescanThreadPoolSize'.
 void setMaxSuspectThreadPoolSize(int maxSuspectThreadPoolSize)
          Sets the value of field 'maxSuspectThreadPoolSize'.
 void setProtocolPlugin(java.util.ArrayList protocolPluginCollection)
          Method setProtocolPlugin Sets the value of 'protocolPlugin' by copying the given ArrayList.
 void setProtocolPlugin(int index, ProtocolPlugin vProtocolPlugin)
          Method setProtocolPlugin
 void setProtocolPlugin(ProtocolPlugin[] protocolPluginArray)
          Method setProtocolPlugin
 void setProtocolPluginCollection(java.util.ArrayList protocolPluginCollection)
          Method setProtocolPluginCollection Sets the value of 'protocolPlugin' by setting it to the given ArrayList.
 void setRescanFrequency(long rescanFrequency)
          Sets the value of field 'rescanFrequency'.
 void setSmbConfig(SmbConfig smbConfig)
          Sets the value of field 'smbConfig'.
 void setXmlrpc(java.lang.String xmlrpc)
          Sets the value of field 'xmlrpc'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapsdConfiguration

public CapsdConfiguration()
Method Detail

addIpManagement

public void addIpManagement(IpManagement vIpManagement)
                     throws java.lang.IndexOutOfBoundsException
Method addIpManagement

Parameters:
vIpManagement -
Throws:
java.lang.IndexOutOfBoundsException

addIpManagement

public void addIpManagement(int index,
                            IpManagement vIpManagement)
                     throws java.lang.IndexOutOfBoundsException
Method addIpManagement

Parameters:
index -
vIpManagement -
Throws:
java.lang.IndexOutOfBoundsException

addProtocolPlugin

public void addProtocolPlugin(ProtocolPlugin vProtocolPlugin)
                       throws java.lang.IndexOutOfBoundsException
Method addProtocolPlugin

Parameters:
vProtocolPlugin -
Throws:
java.lang.IndexOutOfBoundsException

addProtocolPlugin

public void addProtocolPlugin(int index,
                              ProtocolPlugin vProtocolPlugin)
                       throws java.lang.IndexOutOfBoundsException
Method addProtocolPlugin

Parameters:
index -
vProtocolPlugin -
Throws:
java.lang.IndexOutOfBoundsException

clearIpManagement

public void clearIpManagement()
Method clearIpManagement


clearProtocolPlugin

public void clearProtocolPlugin()
Method clearProtocolPlugin


deleteInitialSleepTime

public void deleteInitialSleepTime()
Method deleteInitialSleepTime


deleteMaxRescanThreadPoolSize

public void deleteMaxRescanThreadPoolSize()
Method deleteMaxRescanThreadPoolSize


deleteMaxSuspectThreadPoolSize

public void deleteMaxSuspectThreadPoolSize()
Method deleteMaxSuspectThreadPoolSize


deleteRescanFrequency

public void deleteRescanFrequency()
Method deleteRescanFrequency


enumerateIpManagement

public java.util.Enumeration enumerateIpManagement()
Method enumerateIpManagement

Returns:
Enumeration

enumerateProtocolPlugin

public java.util.Enumeration enumerateProtocolPlugin()
Method enumerateProtocolPlugin

Returns:
Enumeration

getAbortProtocolScansIfNoRoute

public java.lang.String getAbortProtocolScansIfNoRoute()
Returns the value of field 'abortProtocolScansIfNoRoute'. The field 'abortProtocolScansIfNoRoute' has the following description: Flag which determines Capsd's behavior in the event that a NoRouteToHost exception is generated during a protocol plugin scan of an interface. If true, Capsd will abort the protocol scanning process for the interface.

Returns:
String

getDeletePropagationEnabled

public java.lang.String getDeletePropagationEnabled()
Returns the value of field 'deletePropagationEnabled'. The field 'deletePropagationEnabled' has the following description: Determine if deleting an service propagates to deleting the interface if the service is the only one remaining on the interface. Likewise for the only interface on a node.

Returns:
String

getInitialSleepTime

public long getInitialSleepTime()
Returns the value of field 'initialSleepTime'. The field 'initialSleepTime' has the following description: Interval (in milliseconds) between Capsd startup and the start of rescan processing.

Returns:
long

getIpManagement

public IpManagement getIpManagement(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getIpManagement

Parameters:
index -
Returns:
IpManagement
Throws:
java.lang.IndexOutOfBoundsException

getIpManagement

public IpManagement[] getIpManagement()
Method getIpManagement

Returns:
IpManagement

getIpManagementCollection

public java.util.ArrayList getIpManagementCollection()
Method getIpManagementCollection Returns a reference to 'ipManagement'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getIpManagementCount

public int getIpManagementCount()
Method getIpManagementCount

Returns:
int

getManagementPolicy

public java.lang.String getManagementPolicy()
Returns the value of field 'managementPolicy'. The field 'managementPolicy' has the following description: Default management policy.

Returns:
String

getMaxRescanThreadPoolSize

public int getMaxRescanThreadPoolSize()
Returns the value of field 'maxRescanThreadPoolSize'. The field 'maxRescanThreadPoolSize' has the following description: Maximum number of threads available for rescanning managed interfaces.

Returns:
int

getMaxSuspectThreadPoolSize

public int getMaxSuspectThreadPoolSize()
Returns the value of field 'maxSuspectThreadPoolSize'. The field 'maxSuspectThreadPoolSize' has the following description: Maximum number of threads available for processing 'newSuspect' events from discovery.

Returns:
int

getProtocolPlugin

public ProtocolPlugin getProtocolPlugin(int index)
                                 throws java.lang.IndexOutOfBoundsException
Method getProtocolPlugin

Parameters:
index -
Returns:
ProtocolPlugin
Throws:
java.lang.IndexOutOfBoundsException

getProtocolPlugin

public ProtocolPlugin[] getProtocolPlugin()
Method getProtocolPlugin

Returns:
ProtocolPlugin

getProtocolPluginCollection

public java.util.ArrayList getProtocolPluginCollection()
Method getProtocolPluginCollection Returns a reference to 'protocolPlugin'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getProtocolPluginCount

public int getProtocolPluginCount()
Method getProtocolPluginCount

Returns:
int

getRescanFrequency

public long getRescanFrequency()
Returns the value of field 'rescanFrequency'. The field 'rescanFrequency' has the following description: Interval (in milliseconds) between IP address re-scans.

Returns:
long

getSmbConfig

public SmbConfig getSmbConfig()
Returns the value of field 'smbConfig'. The field 'smbConfig' has the following description: SMB protocol configuration (primarily for SMB authentication).

Returns:
SmbConfig

getXmlrpc

public java.lang.String getXmlrpc()
Returns the value of field 'xmlrpc'. The field 'xmlrpc' has the following description: Flag which indicates if an external XMLRPC server has to be notified with any event process errors.

Returns:
String

hasInitialSleepTime

public boolean hasInitialSleepTime()
Method hasInitialSleepTime

Returns:
boolean

hasMaxRescanThreadPoolSize

public boolean hasMaxRescanThreadPoolSize()
Method hasMaxRescanThreadPoolSize

Returns:
boolean

hasMaxSuspectThreadPoolSize

public boolean hasMaxSuspectThreadPoolSize()
Method hasMaxSuspectThreadPoolSize

Returns:
boolean

hasRescanFrequency

public boolean hasRescanFrequency()
Method hasRescanFrequency

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeIpManagement

public boolean removeIpManagement(IpManagement vIpManagement)
Method removeIpManagement

Parameters:
vIpManagement -
Returns:
boolean

removeProtocolPlugin

public boolean removeProtocolPlugin(ProtocolPlugin vProtocolPlugin)
Method removeProtocolPlugin

Parameters:
vProtocolPlugin -
Returns:
boolean

setAbortProtocolScansIfNoRoute

public void setAbortProtocolScansIfNoRoute(java.lang.String abortProtocolScansIfNoRoute)
Sets the value of field 'abortProtocolScansIfNoRoute'. The field 'abortProtocolScansIfNoRoute' has the following description: Flag which determines Capsd's behavior in the event that a NoRouteToHost exception is generated during a protocol plugin scan of an interface. If true, Capsd will abort the protocol scanning process for the interface.

Parameters:
abortProtocolScansIfNoRoute - the value of field 'abortProtocolScansIfNoRoute'.

setDeletePropagationEnabled

public void setDeletePropagationEnabled(java.lang.String deletePropagationEnabled)
Sets the value of field 'deletePropagationEnabled'. The field 'deletePropagationEnabled' has the following description: Determine if deleting an service propagates to deleting the interface if the service is the only one remaining on the interface. Likewise for the only interface on a node.

Parameters:
deletePropagationEnabled - the value of field 'deletePropagationEnabled'.

setInitialSleepTime

public void setInitialSleepTime(long initialSleepTime)
Sets the value of field 'initialSleepTime'. The field 'initialSleepTime' has the following description: Interval (in milliseconds) between Capsd startup and the start of rescan processing.

Parameters:
initialSleepTime - the value of field 'initialSleepTime'

setIpManagement

public void setIpManagement(int index,
                            IpManagement vIpManagement)
                     throws java.lang.IndexOutOfBoundsException
Method setIpManagement

Parameters:
index -
vIpManagement -
Throws:
java.lang.IndexOutOfBoundsException

setIpManagement

public void setIpManagement(IpManagement[] ipManagementArray)
Method setIpManagement

Parameters:
ipManagementArray -

setIpManagement

public void setIpManagement(java.util.ArrayList ipManagementCollection)
Method setIpManagement Sets the value of 'ipManagement' by copying the given ArrayList.

Parameters:
ipManagementCollection - the Vector to copy.

setIpManagementCollection

public void setIpManagementCollection(java.util.ArrayList ipManagementCollection)
Method setIpManagementCollection Sets the value of 'ipManagement' by setting it to the given ArrayList. No type checking is performed.

Parameters:
ipManagementCollection - the ArrayList to copy.

setManagementPolicy

public void setManagementPolicy(java.lang.String managementPolicy)
Sets the value of field 'managementPolicy'. The field 'managementPolicy' has the following description: Default management policy.

Parameters:
managementPolicy - the value of field 'managementPolicy'

setMaxRescanThreadPoolSize

public void setMaxRescanThreadPoolSize(int maxRescanThreadPoolSize)
Sets the value of field 'maxRescanThreadPoolSize'. The field 'maxRescanThreadPoolSize' has the following description: Maximum number of threads available for rescanning managed interfaces.

Parameters:
maxRescanThreadPoolSize - the value of field 'maxRescanThreadPoolSize'.

setMaxSuspectThreadPoolSize

public void setMaxSuspectThreadPoolSize(int maxSuspectThreadPoolSize)
Sets the value of field 'maxSuspectThreadPoolSize'. The field 'maxSuspectThreadPoolSize' has the following description: Maximum number of threads available for processing 'newSuspect' events from discovery.

Parameters:
maxSuspectThreadPoolSize - the value of field 'maxSuspectThreadPoolSize'.

setProtocolPlugin

public void setProtocolPlugin(int index,
                              ProtocolPlugin vProtocolPlugin)
                       throws java.lang.IndexOutOfBoundsException
Method setProtocolPlugin

Parameters:
index -
vProtocolPlugin -
Throws:
java.lang.IndexOutOfBoundsException

setProtocolPlugin

public void setProtocolPlugin(ProtocolPlugin[] protocolPluginArray)
Method setProtocolPlugin

Parameters:
protocolPluginArray -

setProtocolPlugin

public void setProtocolPlugin(java.util.ArrayList protocolPluginCollection)
Method setProtocolPlugin Sets the value of 'protocolPlugin' by copying the given ArrayList.

Parameters:
protocolPluginCollection - the Vector to copy.

setProtocolPluginCollection

public void setProtocolPluginCollection(java.util.ArrayList protocolPluginCollection)
Method setProtocolPluginCollection Sets the value of 'protocolPlugin' by setting it to the given ArrayList. No type checking is performed.

Parameters:
protocolPluginCollection - the ArrayList to copy.

setRescanFrequency

public void setRescanFrequency(long rescanFrequency)
Sets the value of field 'rescanFrequency'. The field 'rescanFrequency' has the following description: Interval (in milliseconds) between IP address re-scans.

Parameters:
rescanFrequency - the value of field 'rescanFrequency'.

setSmbConfig

public void setSmbConfig(SmbConfig smbConfig)
Sets the value of field 'smbConfig'. The field 'smbConfig' has the following description: SMB protocol configuration (primarily for SMB authentication).

Parameters:
smbConfig - the value of field 'smbConfig'.

setXmlrpc

public void setXmlrpc(java.lang.String xmlrpc)
Sets the value of field 'xmlrpc'. The field 'xmlrpc' has the following description: Flag which indicates if an external XMLRPC server has to be notified with any event process errors.

Parameters:
xmlrpc - the value of field 'xmlrpc'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.