public class CapsdConfiguration extends Object implements Serializable
Constructor and Description |
---|
CapsdConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addIpManagement(int index,
IpManagement vIpManagement) |
void |
addIpManagement(IpManagement vIpManagement) |
void |
addProtocolPlugin(int index,
ProtocolPlugin vProtocolPlugin) |
void |
addProtocolPlugin(ProtocolPlugin vProtocolPlugin) |
void |
deleteInitialSleepTime() |
void |
deleteMaxRescanThreadPoolSize() |
void |
deleteMaxSuspectThreadPoolSize() |
void |
deleteRescanFrequency() |
Enumeration<IpManagement> |
enumerateIpManagement()
Method enumerateIpManagement.
|
Enumeration<ProtocolPlugin> |
enumerateProtocolPlugin()
Method enumerateProtocolPlugin.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getAbortProtocolScansIfNoRoute()
Returns the value of field 'abortProtocolScansIfNoRoute'.
|
String |
getDeletePropagationEnabled()
Returns the value of field 'deletePropagationEnabled'.
|
long |
getInitialSleepTime()
Returns the value of field 'initialSleepTime'.
|
IpManagement[] |
getIpManagement()
Method getIpManagement.Returns the contents of the
collection in an Array.
|
IpManagement |
getIpManagement(int index)
Method getIpManagement.
|
List<IpManagement> |
getIpManagementCollection()
Method getIpManagementCollection.Returns a reference to
'_ipManagementList'.
|
int |
getIpManagementCount()
Method getIpManagementCount.
|
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.Returns the contents of the
collection in an Array.
|
ProtocolPlugin |
getProtocolPlugin(int index)
Method getProtocolPlugin.
|
List<ProtocolPlugin> |
getProtocolPluginCollection()
Method getProtocolPluginCollection.Returns a reference to
'_protocolPluginList'.
|
int |
getProtocolPluginCount()
Method getProtocolPluginCount.
|
long |
getRescanFrequency()
Returns the value of field 'rescanFrequency'.
|
SmbConfig |
getSmbConfig()
Returns the value of field 'smbConfig'.
|
String |
getXmlrpc()
Returns the value of field 'xmlrpc'.
|
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 |
isValid()
Method isValid.
|
Iterator<IpManagement> |
iterateIpManagement()
Method iterateIpManagement.
|
Iterator<ProtocolPlugin> |
iterateProtocolPlugin()
Method iterateProtocolPlugin.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllIpManagement() |
void |
removeAllProtocolPlugin() |
boolean |
removeIpManagement(IpManagement vIpManagement)
Method removeIpManagement.
|
IpManagement |
removeIpManagementAt(int index)
Method removeIpManagementAt.
|
boolean |
removeProtocolPlugin(ProtocolPlugin vProtocolPlugin)
Method removeProtocolPlugin.
|
ProtocolPlugin |
removeProtocolPluginAt(int index)
Method removeProtocolPluginAt.
|
void |
setAbortProtocolScansIfNoRoute(String abortProtocolScansIfNoRoute)
Sets the value of field 'abortProtocolScansIfNoRoute'.
|
void |
setDeletePropagationEnabled(String deletePropagationEnabled)
Sets the value of field 'deletePropagationEnabled'.
|
void |
setInitialSleepTime(long initialSleepTime)
Sets the value of field 'initialSleepTime'.
|
void |
setIpManagement(int index,
IpManagement vIpManagement) |
void |
setIpManagement(IpManagement[] vIpManagementArray) |
void |
setIpManagement(List<IpManagement> vIpManagementList)
Sets the value of '_ipManagementList' by copying the given
Vector.
|
void |
setIpManagementCollection(List<IpManagement> ipManagementList)
Deprecated.
|
void |
setManagementPolicy(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(int index,
ProtocolPlugin vProtocolPlugin) |
void |
setProtocolPlugin(List<ProtocolPlugin> vProtocolPluginList)
Sets the value of '_protocolPluginList' by copying the given
Vector.
|
void |
setProtocolPlugin(ProtocolPlugin[] vProtocolPluginArray) |
void |
setProtocolPluginCollection(List<ProtocolPlugin> protocolPluginList)
Deprecated.
|
void |
setRescanFrequency(long rescanFrequency)
Sets the value of field 'rescanFrequency'.
|
void |
setSmbConfig(SmbConfig smbConfig)
Sets the value of field 'smbConfig'.
|
void |
setXmlrpc(String xmlrpc)
Sets the value of field 'xmlrpc'.
|
static CapsdConfiguration |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addIpManagement(IpManagement vIpManagement) throws IndexOutOfBoundsException
vIpManagement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIpManagement(int index, IpManagement vIpManagement) throws IndexOutOfBoundsException
index
- vIpManagement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addProtocolPlugin(ProtocolPlugin vProtocolPlugin) throws IndexOutOfBoundsException
vProtocolPlugin
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addProtocolPlugin(int index, ProtocolPlugin vProtocolPlugin) throws IndexOutOfBoundsException
index
- vProtocolPlugin
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteInitialSleepTime()
public void deleteMaxRescanThreadPoolSize()
public void deleteMaxSuspectThreadPoolSize()
public void deleteRescanFrequency()
public Enumeration<IpManagement> enumerateIpManagement()
public Enumeration<ProtocolPlugin> enumerateProtocolPlugin()
public boolean equals(Object obj)
public String getAbortProtocolScansIfNoRoute()
public String getDeletePropagationEnabled()
public long getInitialSleepTime()
public IpManagement getIpManagement(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic IpManagement[] getIpManagement()
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<IpManagement> getIpManagementCollection()
public int getIpManagementCount()
public String getManagementPolicy()
public int getMaxRescanThreadPoolSize()
public int getMaxSuspectThreadPoolSize()
public ProtocolPlugin getProtocolPlugin(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic ProtocolPlugin[] getProtocolPlugin()
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<ProtocolPlugin> getProtocolPluginCollection()
public int getProtocolPluginCount()
public long getRescanFrequency()
public SmbConfig getSmbConfig()
public String getXmlrpc()
public boolean hasInitialSleepTime()
public boolean hasMaxRescanThreadPoolSize()
public boolean hasMaxSuspectThreadPoolSize()
public boolean hasRescanFrequency()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<IpManagement> iterateIpManagement()
public Iterator<ProtocolPlugin> iterateProtocolPlugin()
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 removeAllIpManagement()
public void removeAllProtocolPlugin()
public boolean removeIpManagement(IpManagement vIpManagement)
vIpManagement
- public IpManagement removeIpManagementAt(int index)
index
- public boolean removeProtocolPlugin(ProtocolPlugin vProtocolPlugin)
vProtocolPlugin
- public ProtocolPlugin removeProtocolPluginAt(int index)
index
- public void setAbortProtocolScansIfNoRoute(String abortProtocolScansIfNoRoute)
abortProtocolScansIfNoRoute
- the value of field
'abortProtocolScansIfNoRoute'.public void setDeletePropagationEnabled(String deletePropagationEnabled)
deletePropagationEnabled
- the value of field
'deletePropagationEnabled'.public void setInitialSleepTime(long initialSleepTime)
initialSleepTime
- the value of field 'initialSleepTime'public void setIpManagement(int index, IpManagement vIpManagement) throws IndexOutOfBoundsException
index
- vIpManagement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setIpManagement(IpManagement[] vIpManagementArray)
vIpManagementArray
- public void setIpManagement(List<IpManagement> vIpManagementList)
vIpManagementList
- the Vector to copy.public void setIpManagementCollection(List<IpManagement> ipManagementList)
ipManagementList
- the Vector to set.public void setManagementPolicy(String managementPolicy)
managementPolicy
- the value of field 'managementPolicy'public void setMaxRescanThreadPoolSize(int maxRescanThreadPoolSize)
maxRescanThreadPoolSize
- the value of field
'maxRescanThreadPoolSize'.public void setMaxSuspectThreadPoolSize(int maxSuspectThreadPoolSize)
maxSuspectThreadPoolSize
- the value of field
'maxSuspectThreadPoolSize'.public void setProtocolPlugin(int index, ProtocolPlugin vProtocolPlugin) throws IndexOutOfBoundsException
index
- vProtocolPlugin
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setProtocolPlugin(ProtocolPlugin[] vProtocolPluginArray)
vProtocolPluginArray
- public void setProtocolPlugin(List<ProtocolPlugin> vProtocolPluginList)
vProtocolPluginList
- the Vector to copy.public void setProtocolPluginCollection(List<ProtocolPlugin> protocolPluginList)
protocolPluginList
- the Vector to set.public void setRescanFrequency(long rescanFrequency)
rescanFrequency
- the value of field 'rescanFrequency'.public void setSmbConfig(SmbConfig smbConfig)
smbConfig
- the value of field 'smbConfig'.public void setXmlrpc(String xmlrpc)
xmlrpc
- the value of field 'xmlrpc'.public static CapsdConfiguration 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.