org.opennms.netmgt.config.vulnscand
Class VulnscandConfiguration

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

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

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

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

Constructor Summary
VulnscandConfiguration()
           
 
Method Summary
 void addScanLevel(int index, ScanLevel vScanLevel)
          Method addScanLevel
 void addScanLevel(ScanLevel vScanLevel)
          Method addScanLevel
 void clearScanLevel()
          Method clearScanLevel
 void deleteInitialSleepTime()
          Method deleteInitialSleepTime
 void deleteMaxRescanThreadPoolSize()
          Method deleteMaxRescanThreadPoolSize
 void deleteMaxSuspectThreadPoolSize()
          Method deleteMaxSuspectThreadPoolSize
 void deleteRescanFrequency()
          Method deleteRescanFrequency
 void deleteServerPort()
          Method deleteServerPort
 void deleteStatus()
          Method deleteStatus
 java.util.Enumeration enumerateScanLevel()
          Method enumerateScanLevel
 Excludes getExcludes()
          Returns the value of field 'excludes'.
 long getInitialSleepTime()
          Returns the value of field 'initialSleepTime'.
 ManagedInterfaces getManagedInterfaces()
          Returns the value of field 'managedInterfaces'.
 int getMaxRescanThreadPoolSize()
          Returns the value of field 'maxRescanThreadPoolSize'.
 int getMaxSuspectThreadPoolSize()
          Returns the value of field 'maxSuspectThreadPoolSize'.
 long getRescanFrequency()
          Returns the value of field 'rescanFrequency'.
 ScanLevel[] getScanLevel()
          Method getScanLevel
 ScanLevel getScanLevel(int index)
          Method getScanLevel
 java.util.ArrayList getScanLevelCollection()
          Method getScanLevelCollection Returns a reference to 'scanLevel'.
 int getScanLevelCount()
          Method getScanLevelCount
 java.lang.String getServerAddress()
          Returns the value of field 'serverAddress'.
 java.lang.String getServerPassword()
          Returns the value of field 'serverPassword'.
 int getServerPort()
          Returns the value of field 'serverPort'.
 java.lang.String getServerUsername()
          Returns the value of field 'serverUsername'.
 boolean getStatus()
          Returns the value of field 'status'.
 boolean hasInitialSleepTime()
          Method hasInitialSleepTime
 boolean hasMaxRescanThreadPoolSize()
          Method hasMaxRescanThreadPoolSize
 boolean hasMaxSuspectThreadPoolSize()
          Method hasMaxSuspectThreadPoolSize
 boolean hasRescanFrequency()
          Method hasRescanFrequency
 boolean hasServerPort()
          Method hasServerPort
 boolean hasStatus()
          Method hasStatus
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeScanLevel(ScanLevel vScanLevel)
          Method removeScanLevel
 void setExcludes(Excludes excludes)
          Sets the value of field 'excludes'.
 void setInitialSleepTime(long initialSleepTime)
          Sets the value of field 'initialSleepTime'.
 void setManagedInterfaces(ManagedInterfaces managedInterfaces)
          Sets the value of field 'managedInterfaces'.
 void setMaxRescanThreadPoolSize(int maxRescanThreadPoolSize)
          Sets the value of field 'maxRescanThreadPoolSize'.
 void setMaxSuspectThreadPoolSize(int maxSuspectThreadPoolSize)
          Sets the value of field 'maxSuspectThreadPoolSize'.
 void setRescanFrequency(long rescanFrequency)
          Sets the value of field 'rescanFrequency'.
 void setScanLevel(java.util.ArrayList scanLevelCollection)
          Method setScanLevel Sets the value of 'scanLevel' by copying the given ArrayList.
 void setScanLevel(int index, ScanLevel vScanLevel)
          Method setScanLevel
 void setScanLevel(ScanLevel[] scanLevelArray)
          Method setScanLevel
 void setScanLevelCollection(java.util.ArrayList scanLevelCollection)
          Method setScanLevelCollection Sets the value of 'scanLevel' by setting it to the given ArrayList.
 void setServerAddress(java.lang.String serverAddress)
          Sets the value of field 'serverAddress'.
 void setServerPassword(java.lang.String serverPassword)
          Sets the value of field 'serverPassword'.
 void setServerPort(int serverPort)
          Sets the value of field 'serverPort'.
 void setServerUsername(java.lang.String serverUsername)
          Sets the value of field 'serverUsername'.
 void setStatus(boolean status)
          Sets the value of field 'status'.
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

VulnscandConfiguration

public VulnscandConfiguration()
Method Detail

addScanLevel

public void addScanLevel(ScanLevel vScanLevel)
                  throws java.lang.IndexOutOfBoundsException
Method addScanLevel

Parameters:
vScanLevel -
Throws:
java.lang.IndexOutOfBoundsException

addScanLevel

public void addScanLevel(int index,
                         ScanLevel vScanLevel)
                  throws java.lang.IndexOutOfBoundsException
Method addScanLevel

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

clearScanLevel

public void clearScanLevel()
Method clearScanLevel


deleteInitialSleepTime

public void deleteInitialSleepTime()
Method deleteInitialSleepTime


deleteMaxRescanThreadPoolSize

public void deleteMaxRescanThreadPoolSize()
Method deleteMaxRescanThreadPoolSize


deleteMaxSuspectThreadPoolSize

public void deleteMaxSuspectThreadPoolSize()
Method deleteMaxSuspectThreadPoolSize


deleteRescanFrequency

public void deleteRescanFrequency()
Method deleteRescanFrequency


deleteServerPort

public void deleteServerPort()
Method deleteServerPort


deleteStatus

public void deleteStatus()
Method deleteStatus


enumerateScanLevel

public java.util.Enumeration enumerateScanLevel()
Method enumerateScanLevel

Returns:
Enumeration

getExcludes

public Excludes getExcludes()
Returns the value of field 'excludes'. The field 'excludes' has the following description: Excludes that override all includes (managed interfaces or scan levels)

Returns:
Excludes

getInitialSleepTime

public long getInitialSleepTime()
Returns the value of field 'initialSleepTime'.

Returns:
long

getManagedInterfaces

public ManagedInterfaces getManagedInterfaces()
Returns the value of field 'managedInterfaces'. The field 'managedInterfaces' has the following description: Settings that apply to all managed interfaces

Returns:
ManagedInterfaces

getMaxRescanThreadPoolSize

public int getMaxRescanThreadPoolSize()
Returns the value of field 'maxRescanThreadPoolSize'.

Returns:
int

getMaxSuspectThreadPoolSize

public int getMaxSuspectThreadPoolSize()
Returns the value of field 'maxSuspectThreadPoolSize'.

Returns:
int

getRescanFrequency

public long getRescanFrequency()
Returns the value of field 'rescanFrequency'.

Returns:
long

getScanLevel

public ScanLevel getScanLevel(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getScanLevel

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

getScanLevel

public ScanLevel[] getScanLevel()
Method getScanLevel

Returns:
ScanLevel

getScanLevelCollection

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

Returns:
ArrayList

getScanLevelCount

public int getScanLevelCount()
Method getScanLevelCount

Returns:
int

getServerAddress

public java.lang.String getServerAddress()
Returns the value of field 'serverAddress'.

Returns:
String

getServerPassword

public java.lang.String getServerPassword()
Returns the value of field 'serverPassword'.

Returns:
String

getServerPort

public int getServerPort()
Returns the value of field 'serverPort'.

Returns:
int

getServerUsername

public java.lang.String getServerUsername()
Returns the value of field 'serverUsername'.

Returns:
String

getStatus

public boolean getStatus()
Returns the value of field 'status'.

Returns:
boolean

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

hasServerPort

public boolean hasServerPort()
Method hasServerPort

Returns:
boolean

hasStatus

public boolean hasStatus()
Method hasStatus

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

removeScanLevel

public boolean removeScanLevel(ScanLevel vScanLevel)
Method removeScanLevel

Parameters:
vScanLevel -
Returns:
boolean

setExcludes

public void setExcludes(Excludes excludes)
Sets the value of field 'excludes'. The field 'excludes' has the following description: Excludes that override all includes (managed interfaces or scan levels)

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

setInitialSleepTime

public void setInitialSleepTime(long initialSleepTime)
Sets the value of field 'initialSleepTime'.

Parameters:
initialSleepTime - the value of field 'initialSleepTime'

setManagedInterfaces

public void setManagedInterfaces(ManagedInterfaces managedInterfaces)
Sets the value of field 'managedInterfaces'. The field 'managedInterfaces' has the following description: Settings that apply to all managed interfaces

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

setMaxRescanThreadPoolSize

public void setMaxRescanThreadPoolSize(int maxRescanThreadPoolSize)
Sets the value of field 'maxRescanThreadPoolSize'.

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

setMaxSuspectThreadPoolSize

public void setMaxSuspectThreadPoolSize(int maxSuspectThreadPoolSize)
Sets the value of field 'maxSuspectThreadPoolSize'.

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

setRescanFrequency

public void setRescanFrequency(long rescanFrequency)
Sets the value of field 'rescanFrequency'.

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

setScanLevel

public void setScanLevel(int index,
                         ScanLevel vScanLevel)
                  throws java.lang.IndexOutOfBoundsException
Method setScanLevel

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

setScanLevel

public void setScanLevel(ScanLevel[] scanLevelArray)
Method setScanLevel

Parameters:
scanLevelArray -

setScanLevel

public void setScanLevel(java.util.ArrayList scanLevelCollection)
Method setScanLevel Sets the value of 'scanLevel' by copying the given ArrayList.

Parameters:
scanLevelCollection - the Vector to copy.

setScanLevelCollection

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

Parameters:
scanLevelCollection - the ArrayList to copy.

setServerAddress

public void setServerAddress(java.lang.String serverAddress)
Sets the value of field 'serverAddress'.

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

setServerPassword

public void setServerPassword(java.lang.String serverPassword)
Sets the value of field 'serverPassword'.

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

setServerPort

public void setServerPort(int serverPort)
Sets the value of field 'serverPort'.

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

setServerUsername

public void setServerUsername(java.lang.String serverUsername)
Sets the value of field 'serverUsername'.

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

setStatus

public void setStatus(boolean status)
Sets the value of field 'status'.

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

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.