public class VulnscandConfiguration extends Object implements Serializable
Constructor and Description |
---|
VulnscandConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addScanLevel(int index,
ScanLevel vScanLevel) |
void |
addScanLevel(ScanLevel vScanLevel) |
void |
deleteInitialSleepTime() |
void |
deleteMaxRescanThreadPoolSize() |
void |
deleteMaxSuspectThreadPoolSize() |
void |
deleteRescanFrequency() |
void |
deleteServerPort() |
void |
deleteStatus() |
Enumeration<ScanLevel> |
enumerateScanLevel()
Method enumerateScanLevel.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
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.Returns the contents of the collection
in an Array.
|
ScanLevel |
getScanLevel(int index)
Method getScanLevel.
|
List<ScanLevel> |
getScanLevelCollection()
Method getScanLevelCollection.Returns a reference to
'_scanLevelList'.
|
int |
getScanLevelCount()
Method getScanLevelCount.
|
String |
getServerAddress()
Returns the value of field 'serverAddress'.
|
String |
getServerPassword()
Returns the value of field 'serverPassword'.
|
int |
getServerPort()
Returns the value of field 'serverPort'.
|
String |
getServerUsername()
Returns the value of field 'serverUsername'.
|
boolean |
getStatus()
Returns the value of field 'status'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
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 |
isStatus()
Returns the value of field 'status'.
|
boolean |
isValid()
Method isValid.
|
Iterator<ScanLevel> |
iterateScanLevel()
Method iterateScanLevel.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllScanLevel() |
boolean |
removeScanLevel(ScanLevel vScanLevel)
Method removeScanLevel.
|
ScanLevel |
removeScanLevelAt(int index)
Method removeScanLevelAt.
|
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(int index,
ScanLevel vScanLevel) |
void |
setScanLevel(List<ScanLevel> vScanLevelList)
Sets the value of '_scanLevelList' by copying the given
Vector.
|
void |
setScanLevel(ScanLevel[] vScanLevelArray) |
void |
setScanLevelCollection(List<ScanLevel> scanLevelList)
Deprecated.
|
void |
setServerAddress(String serverAddress)
Sets the value of field 'serverAddress'.
|
void |
setServerPassword(String serverPassword)
Sets the value of field 'serverPassword'.
|
void |
setServerPort(int serverPort)
Sets the value of field 'serverPort'.
|
void |
setServerUsername(String serverUsername)
Sets the value of field 'serverUsername'.
|
void |
setStatus(boolean status)
Sets the value of field 'status'.
|
static VulnscandConfiguration |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addScanLevel(ScanLevel vScanLevel) throws IndexOutOfBoundsException
vScanLevel
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addScanLevel(int index, ScanLevel vScanLevel) throws IndexOutOfBoundsException
index
- vScanLevel
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteInitialSleepTime()
public void deleteMaxRescanThreadPoolSize()
public void deleteMaxSuspectThreadPoolSize()
public void deleteRescanFrequency()
public void deleteServerPort()
public void deleteStatus()
public Enumeration<ScanLevel> enumerateScanLevel()
public boolean equals(Object obj)
public Excludes getExcludes()
public long getInitialSleepTime()
public ManagedInterfaces getManagedInterfaces()
public int getMaxRescanThreadPoolSize()
public int getMaxSuspectThreadPoolSize()
public long getRescanFrequency()
public ScanLevel getScanLevel(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic ScanLevel[] getScanLevel()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<ScanLevel> getScanLevelCollection()
public int getScanLevelCount()
public String getServerAddress()
public String getServerPassword()
public int getServerPort()
public String getServerUsername()
public boolean getStatus()
public boolean hasInitialSleepTime()
public boolean hasMaxRescanThreadPoolSize()
public boolean hasMaxSuspectThreadPoolSize()
public boolean hasRescanFrequency()
public boolean hasServerPort()
public boolean hasStatus()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isStatus()
public boolean isValid()
public Iterator<ScanLevel> iterateScanLevel()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllScanLevel()
public boolean removeScanLevel(ScanLevel vScanLevel)
vScanLevel
- public ScanLevel removeScanLevelAt(int index)
index
- public void setExcludes(Excludes excludes)
excludes
- the value of field 'excludes'.public void setInitialSleepTime(long initialSleepTime)
initialSleepTime
- the value of field 'initialSleepTime'public void setManagedInterfaces(ManagedInterfaces managedInterfaces)
managedInterfaces
- the value of field
'managedInterfaces'.public void setMaxRescanThreadPoolSize(int maxRescanThreadPoolSize)
maxRescanThreadPoolSize
- the value of field
'maxRescanThreadPoolSize'.public void setMaxSuspectThreadPoolSize(int maxSuspectThreadPoolSize)
maxSuspectThreadPoolSize
- the value of field
'maxSuspectThreadPoolSize'.public void setRescanFrequency(long rescanFrequency)
rescanFrequency
- the value of field 'rescanFrequency'.public void setScanLevel(int index, ScanLevel vScanLevel) throws IndexOutOfBoundsException
index
- vScanLevel
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setScanLevel(ScanLevel[] vScanLevelArray)
vScanLevelArray
- public void setScanLevel(List<ScanLevel> vScanLevelList)
vScanLevelList
- the Vector to copy.public void setScanLevelCollection(List<ScanLevel> scanLevelList)
scanLevelList
- the Vector to set.public void setServerAddress(String serverAddress)
serverAddress
- the value of field 'serverAddress'.public void setServerPassword(String serverPassword)
serverPassword
- the value of field 'serverPassword'.public void setServerPort(int serverPort)
serverPort
- the value of field 'serverPort'.public void setServerUsername(String serverUsername)
serverUsername
- the value of field 'serverUsername'.public void setStatus(boolean status)
status
- the value of field 'status'.public static VulnscandConfiguration unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.