javax.management.snmp.manager
Class SnmpOptions

java.lang.Object
  extended byjavax.management.snmp.manager.SnmpOptions
All Implemented Interfaces:
Serializable

Deprecated. Use package com.sun.management.snmp.manager in preference to classes in this package. This class may be removed in a future version of Java DMK.

public final class SnmpOptions
extends Object
implements Serializable

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:

Version:
4.12 05/05/04
Author:
Sun Microsystems, Inc, Cisco Systems, Inc.
See Also:
SnmpSession, Serialized Form

Field 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

optAllowMultiplexing

public static final int optAllowMultiplexing
Deprecated. 
This option can be set to control the behavior of a request.

See Also:
Constant Field Values

optFixPduOnError

public static final int optFixPduOnError
Deprecated. 
This option can be set to control the behavior of a request.

See Also:
Constant Field Values

optHandleTooBigError

public static final int optHandleTooBigError
Deprecated. 
This option can be set to control the behavior of a request.

See Also:
Constant Field Values
Constructor Detail

SnmpOptions

public SnmpOptions()
Deprecated. 
Creates a new option with a default value. This default value sets the following options:


SnmpOptions

public SnmpOptions(int options)
Deprecated. 
Creates a new option with the specified value.

Parameters:
options - The initializing options.
Method Detail

getOptions

public int getOptions()
Deprecated. 
Gets all the options set in the object.

Returns:
All the options set in the object.

isMultiplexAllowed

public boolean isMultiplexAllowed()
Deprecated. 
Indicates whether multiplexing is allowed or not.

Returns:
true if multiplexing is allowed, false otherwise.

setMultiplexAllowed

public void setMultiplexAllowed(boolean flag)
Deprecated. 
Sets the MultiplexAllowed option.

Parameters:
flag - The MultiplexAllowed option value.

isPduFixedOnError

public boolean isPduFixedOnError()
Deprecated. 
Indicates whether the PduFixedOnError option is set or not.

Returns:
true if the PduFixedOnError option is set, false otherwise.

setPduFixedOnError

public void setPduFixedOnError(boolean flag)
Deprecated. 
Sets the PduFixedOnError option.

Parameters:
flag - The PduFixedOnError option value.

isTooBigHandled

public boolean isTooBigHandled()
Deprecated. 
Indicates if the TooBigHandled option is set or not.

Returns:
true if the TooBigHandled option is set, false otherwise.

setTooBigHandled

public void setTooBigHandled(boolean flag)
Deprecated. 
Sets the TooBigHandled option.

Parameters:
flag - The TooBigHandled option value.

resetToDefault

public void resetToDefault()
Deprecated. 
Resets to default options.


FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.