public class TrapdConfiguration extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_USE_ADDESS_FROM_VARBIND |
Constructor and Description |
---|
TrapdConfiguration() |
TrapdConfiguration(int _snmpTrapPort,
String snmpTrapAddress) |
Modifier and Type | Method and Description |
---|---|
void |
addSnmpv3User(int index,
Snmpv3User vSnmpv3User) |
void |
addSnmpv3User(Snmpv3User vSnmpv3User) |
void |
deleteNewSuspectOnTrap() |
void |
deleteSnmpTrapPort() |
Enumeration<Snmpv3User> |
enumerateSnmpv3User()
Method enumerateSnmpv3User.
|
boolean |
equals(Object obj) |
int |
getBatchInterval() |
int |
getBatchSize() |
boolean |
getNewSuspectOnTrap()
Returns the value of field 'newSuspectOnTrap'.
|
int |
getQueueSize() |
String |
getSnmpTrapAddress()
Returns the value of field 'snmpTrapAddress'.
|
int |
getSnmpTrapPort()
Returns the value of field 'snmpTrapPort'.
|
Snmpv3User[] |
getSnmpv3User()
Method getSnmpv3User.Returns the contents of the collection
in an Array.
|
Snmpv3User |
getSnmpv3User(int index)
Method getSnmpv3User.
|
List<Snmpv3User> |
getSnmpv3UserCollection()
Method getSnmpv3UserCollection.Returns a reference to
'_snmpv3UserList'.
|
int |
getSnmpv3UserCount()
Method getSnmpv3UserCount.
|
int |
getThreads() |
int |
hashCode() |
boolean |
hasNewSuspectOnTrap()
Method hasNewSuspectOnTrap.
|
boolean |
hasSnmpTrapPort()
Method hasSnmpTrapPort.
|
boolean |
isIncludeRawMessage() |
boolean |
isNewSuspectOnTrap()
Returns the value of field 'newSuspectOnTrap'.
|
Iterator<Snmpv3User> |
iterateSnmpv3User()
Method iterateSnmpv3User.
|
void |
removeAllSnmpv3User() |
boolean |
removeSnmpv3User(Snmpv3User vSnmpv3User)
Method removeSnmpv3User.
|
Snmpv3User |
removeSnmpv3UserAt(int index)
Method removeSnmpv3UserAt.
|
void |
setBatchInterval(int _batchInterval) |
void |
setBatchSize(int _batchSize) |
void |
setIncludeRawMessage(boolean _includeRawMessage) |
void |
setNewSuspectOnTrap(boolean newSuspectOnTrap)
Sets the value of field 'newSuspectOnTrap'.
|
void |
setQueueSize(int _queueSize) |
void |
setSnmpTrapAddress(String snmpTrapAddress)
Sets the value of field 'snmpTrapAddress'.
|
void |
setSnmpTrapPort(int snmpTrapPort)
Sets the value of field 'snmpTrapPort'.
|
void |
setSnmpv3User(int index,
Snmpv3User vSnmpv3User) |
void |
setSnmpv3User(List<Snmpv3User> vSnmpv3UserList)
Sets the value of '_snmpv3UserList' by copying the given
Vector.
|
void |
setSnmpv3User(Snmpv3User[] vSnmpv3UserArray) |
void |
setSnmpv3UserCollection(List<Snmpv3User> snmpv3UserList)
Deprecated.
|
void |
setThreads(int _threads) |
void |
setUseAddressFromVarbind(Boolean useAddessFromVarbind) |
boolean |
shouldUseAddressFromVarbind() |
public static final boolean DEFAULT_USE_ADDESS_FROM_VARBIND
public TrapdConfiguration()
public TrapdConfiguration(int _snmpTrapPort, String snmpTrapAddress)
public void addSnmpv3User(Snmpv3User vSnmpv3User) throws IndexOutOfBoundsException
vSnmpv3User
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSnmpv3User(int index, Snmpv3User vSnmpv3User) throws IndexOutOfBoundsException
index
- vSnmpv3User
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteNewSuspectOnTrap()
public void deleteSnmpTrapPort()
public Enumeration<Snmpv3User> enumerateSnmpv3User()
public boolean getNewSuspectOnTrap()
public String getSnmpTrapAddress()
public int getSnmpTrapPort()
public Snmpv3User getSnmpv3User(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Snmpv3User[] getSnmpv3User()
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<Snmpv3User> getSnmpv3UserCollection()
public int getSnmpv3UserCount()
public boolean hasNewSuspectOnTrap()
public boolean hasSnmpTrapPort()
public boolean isNewSuspectOnTrap()
public boolean shouldUseAddressFromVarbind()
public void setUseAddressFromVarbind(Boolean useAddessFromVarbind)
public Iterator<Snmpv3User> iterateSnmpv3User()
public void removeAllSnmpv3User()
public boolean removeSnmpv3User(Snmpv3User vSnmpv3User)
vSnmpv3User
- public Snmpv3User removeSnmpv3UserAt(int index)
index
- public void setNewSuspectOnTrap(boolean newSuspectOnTrap)
newSuspectOnTrap
- the value of field 'newSuspectOnTrap'public void setSnmpTrapAddress(String snmpTrapAddress)
snmpTrapAddress
- the value of field 'snmpTrapAddress'.public void setSnmpTrapPort(int snmpTrapPort)
snmpTrapPort
- the value of field 'snmpTrapPort'.public void setSnmpv3User(int index, Snmpv3User vSnmpv3User) throws IndexOutOfBoundsException
index
- vSnmpv3User
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSnmpv3User(Snmpv3User[] vSnmpv3UserArray)
vSnmpv3UserArray
- public void setSnmpv3User(List<Snmpv3User> vSnmpv3UserList)
vSnmpv3UserList
- the Vector to copy.public void setSnmpv3UserCollection(List<Snmpv3User> snmpv3UserList)
snmpv3UserList
- the Vector to set.public boolean isIncludeRawMessage()
public void setIncludeRawMessage(boolean _includeRawMessage)
public int getThreads()
public void setThreads(int _threads)
public int getQueueSize()
public void setQueueSize(int _queueSize)
public int getBatchSize()
public void setBatchSize(int _batchSize)
public int getBatchInterval()
public void setBatchInterval(int _batchInterval)
Copyright © 2021. All rights reserved.