|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.snmp.manager.SnmpOptions
com.sun.management.snmp.manager
in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
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
Deprecated. This option can be set to control the behavior of a request. |
static int |
optFixPduOnError
Deprecated. This option can be set to control the behavior of a request. |
static int |
optHandleTooBigError
Deprecated. This option can be set to control the behavior of a request. |
Constructor Summary | |
SnmpOptions()
Deprecated. Creates a new option with a default value. |
|
SnmpOptions(int options)
Deprecated. Creates a new option with the specified value. |
Method Summary | |
int |
getOptions()
Deprecated. Gets all the options set in the object. |
boolean |
isMultiplexAllowed()
Deprecated. Indicates whether multiplexing is allowed or not. |
boolean |
isPduFixedOnError()
Deprecated. Indicates whether the PduFixedOnError option is set or not. |
boolean |
isTooBigHandled()
Deprecated. Indicates if the TooBigHandled option is set or not. |
void |
resetToDefault()
Deprecated. Resets to default options. |
void |
setMultiplexAllowed(boolean flag)
Deprecated. Sets the MultiplexAllowed option. |
void |
setPduFixedOnError(boolean flag)
Deprecated. Sets the PduFixedOnError option. |
void |
setTooBigHandled(boolean flag)
Deprecated. 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()
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |