public class SimpleSnmpTargetConfig extends Object implements SnmpTargetConfig
SnmpTargetConfig implemented as a simple configurable
bean.| Constructor and Description |
|---|
SimpleSnmpTargetConfig() |
| Modifier and Type | Method and Description |
|---|---|
SnmpTargetConfig |
clone()
Creates a clone of this configuration.
|
int |
getRetries()
Gets the number of retries for an SNMP operation when no response
is received before the configured timeout.
|
long |
getTimeout()
Gets the interval of time that should elapse before an SNMP operation
should be assumed to have not been received by the target agent.
|
int |
getWalkMaxRepetitions()
Gets the maximum repetitions for repeating OIDs in a call to a walk
operation.
|
boolean |
isWalkAllowsTruncatedRepetition()
Gets a flag that determines whether a walk operation should allow a
truncated response.
|
void |
setRetries(int retries)
Sets the
retries property. |
void |
setTimeout(long timeout)
Sets the
timeout property. |
void |
setWalkAllowsTruncatedRepetition(boolean walkAllowsTruncatedRepetition)
Sets the
walkAllowsTruncatedRepetition property. |
void |
setWalkMaxRepetitions(int walkMaxRepetitions)
Sets the
walkMaxRepetitions property. |
public int getRetries()
getRetries in interface SnmpTargetConfigpublic void setRetries(int retries)
retries property.retries - the value to setpublic long getTimeout()
getTimeout in interface SnmpTargetConfigpublic void setTimeout(long timeout)
timeout property.timeout - the value to setpublic int getWalkMaxRepetitions()
This value is used as the maxRepetitions value for the underlying
GETBULK operation used to implement MIB walking. It does not effect
the total number of objects that can be returned from a walk. Rather,
it controls the number of objects that are fetched in a single protocol
operation with the target agent. The value selected here represents a
tradeoff between minimizing the number of round trips needed to complete
a walk versus the effort required by the agent to respond to each request
and the amount of information that will be discarded from the last
response (when the end of the information needed to complete the walk
has been reached).
getWalkMaxRepetitions in interface SnmpTargetConfigpublic void setWalkMaxRepetitions(int walkMaxRepetitions)
walkMaxRepetitions property.walkMaxRepetitions - the value to setpublic boolean isWalkAllowsTruncatedRepetition()
The underlying GETBULK protocol operation used to implement walks allows
an arbitrary number of non-repeating and repeating objects to be
requested. If a GETBULK response contains few repeating objects than
were specified in the request, it is generally due to some limitation
of the target agent. When this occurs, the walk is terminated with a
TruncatedResponseException. Set this flag if you may wish to
allow the walk to proceed, making use of the objects that the agent can
successfully return, and ignoring the absence of the requested objects
that were not returned by the agent.
isWalkAllowsTruncatedRepetition in interface SnmpTargetConfigpublic void setWalkAllowsTruncatedRepetition(boolean walkAllowsTruncatedRepetition)
walkAllowsTruncatedRepetition property.walkAllowsTruncatedRepetition - the value to setpublic SnmpTargetConfig clone()
clone in interface SnmpTargetConfigclone in class ObjectCopyright © 2012–2015. All rights reserved.