|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.snmp.manager.SnmpOptions
public final class SnmpOptions
Is used to configure various options for SnmpSession
.
Each session can be tuned to suit a specific need.
Setting these options changes the behavior of all future requests.
The existing requests are also influenced, depending on the nature of the option.
There are currently 3 different options:
Multiplex allowed
: variable binding list of different requests on a same session are merged
when sending the request (but the responses are de-multiplexed)
Fix PDU on error
: if a response contains an error, the variable corresponding to
the error (given by the error-index
field of the SNMP PDU) is removed from the
variable binding list and the request is sent to the agent again
Handle too big PDU
: if a request is too big to be held in one SNMP PDU, the request will
be split into as many requests required to send the original request
SnmpSession
,
Serialized FormField Summary | |
---|---|
static int |
optAllowMultiplexing
This option can be set to control the behavior of a request. |
static int |
optFixPduOnError
This option can be set to control the behavior of a request. |
static int |
optHandleTooBigError
This option can be set to control the behavior of a request. |
Constructor Summary | |
---|---|
SnmpOptions()
Creates a new option with a default value. |
|
SnmpOptions(int options)
Creates a new option with the specified value. |
Method Summary | |
---|---|
int |
getOptions()
Gets all the options set in the object. |
boolean |
isMultiplexAllowed()
Indicates whether multiplexing is allowed or not. |
boolean |
isPduFixedOnError()
Indicates whether the PduFixedOnError option is set or not. |
boolean |
isTooBigHandled()
Indicates if the TooBigHandled option is set or not. |
void |
resetToDefault()
Resets to default options. |
void |
setMultiplexAllowed(boolean flag)
Sets the MultiplexAllowed option. |
void |
setPduFixedOnError(boolean flag)
Sets the PduFixedOnError option. |
void |
setTooBigHandled(boolean flag)
Sets the TooBigHandled option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int optAllowMultiplexing
public static final int optFixPduOnError
public static final int optHandleTooBigError
Constructor Detail |
---|
public SnmpOptions()
optAllowMultiplexing
optFixPduOnError
optHandleTooBigError
public SnmpOptions(int options)
options
- The initializing options.Method Detail |
---|
public int getOptions()
public boolean isMultiplexAllowed()
true
if multiplexing is allowed, false
otherwise.public void setMultiplexAllowed(boolean flag)
MultiplexAllowed
option.
flag
- The MultiplexAllowed
option value.public boolean isPduFixedOnError()
PduFixedOnError
option is set or not.
true
if the PduFixedOnError
option is set, false
otherwise.public void setPduFixedOnError(boolean flag)
PduFixedOnError
option.
flag
- The PduFixedOnError
option value.public boolean isTooBigHandled()
TooBigHandled
option is set or not.
true
if the TooBigHandled
option is set, false
otherwise.public void setTooBigHandled(boolean flag)
TooBigHandled
option.
flag
- The TooBigHandled
option value.public void resetToDefault()
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |