All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.jaw.snmp.manager.SnmpOptions
java.lang.Object
|
+----com.sun.jaw.snmp.manager.SnmpOptions
- public final class SnmpOptions
- extends Object
- implements Serializable
This class is used to configure various options for SnmpSession.
Each session can be tuned to suit a specific needs.
Setting these options changes the behaviour of all future requests.
The already created requests are also
influenced, depending on the nature of the option.
There are currently 3 different options:
- Multiplex allowed: varbind 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
varbind list and the requets is sent again to the agent;
- Handle too big PDU: if a request is too big to be held in one SNMP PDU, the request will
be split in as many required requests so as to send the original request.
- See Also:
- SnmpSession
-
SnmpOptions()
- Create option with
SnmpConst.DefaultOption
-
SnmpOptions(int)
- Create option with predefined value.
-
getOptions()
- Returns all the options set in the object.
-
isMultiplexAllowed()
- Indicates if the multiplex is allowed or not.
-
isPduFixedOnError()
- Indicates if the PduFixedOnError option is set or not.
-
isTooBigHandled()
- Indicates if the TooBigHandled option is set or not.
-
resetToDefault()
- Reset to default options.
-
setMultiplexAllowed(boolean)
- Set the MultiplexAllowed option.
-
setPduFixedOnError(boolean)
- Set the PduFixedOnError option.
-
setTooBigHandled(boolean)
- Set the TooBigHandled option.
SnmpOptions
public SnmpOptions()
- Create option with
SnmpConst.DefaultOption
SnmpOptions
public SnmpOptions(int options)
- Create option with predefined value.
getOptions
public synchronized int getOptions()
- Returns all the options set in the object.
isMultiplexAllowed
public synchronized boolean isMultiplexAllowed()
- Indicates if the multiplex is allowed or not.
setMultiplexAllowed
public synchronized void setMultiplexAllowed(boolean flag)
- Set the MultiplexAllowed option.
isPduFixedOnError
public synchronized boolean isPduFixedOnError()
- Indicates if the PduFixedOnError option is set or not.
setPduFixedOnError
public synchronized void setPduFixedOnError(boolean flag)
- Set the PduFixedOnError option.
isTooBigHandled
public synchronized boolean isTooBigHandled()
- Indicates if the TooBigHandled option is set or not.
setTooBigHandled
public synchronized void setTooBigHandled(boolean flag)
- Set the TooBigHandled option.
resetToDefault
public synchronized void resetToDefault()
- Reset to default options.
All Packages Class Hierarchy This Package Previous Next Index