com.sun.jaw.snmp.manager
Class SnmpVar

java.lang.Object
  |
  +--com.sun.jaw.snmp.common.SnmpVarBind
        |
        +--com.sun.jaw.snmp.manager.SnmpVar

public class SnmpVar
extends SnmpVarBind
implements SnmpDataTypeEnums, java.lang.Cloneable

This class holds SnmpVar information for a MIB variable. A SnmpVar consists of two parts:

- The corresponding OID object for the MIB variable.
- A value associated with that OID instance.
- The status of the SnmpVar that indicates if the list is an exception as specified in SNMPv2 specification.

The value part if present determines the MIB syntax for the object.

It provides clone functions that can be used to clone the SnmpVar with or without the value part.

A SnmpVar can be constructed and a value can be assigned. The SnmpVar also has a status information which specifies if the agent responded with an exception condition (SNMPv1 -> SNMPv2 translation) such as noSuchInstance, endOfMibView, or noSuchObject. Such errors are typically fixed and the request is retried by removing these variables from the request.

See Also:
Serialized Form

Field Summary
static MibStoreIfSrv meta
          Reference to a mib store service.
static java.lang.String[] statusLegend
          Keeps the legend for the value part of the SnmpVar.
static int stValueEndOfMibView
          Useful constant indicating that the status of the SnmpVar object is endOfMibView.
static int stValueNoSuchInstance
          Useful constant indicating that the status of the SnmpVar object is noSuchInstance.
static int stValueNoSuchObject
          Useful constant indicating that the status of the SnmpVar object is noSuchObject.
static int stValueOk
          Useful constant indicating that the status of the SnmpVar object is valid.
static int stValueUnspecified
          Useful constant indicating that the status of the SnmpVar object is not initialized.
 
Fields inherited from class com.sun.jaw.snmp.common.SnmpVarBind
endOfMibView, noSuchInstance, noSuchObject, oid, value
 
Constructor Summary
SnmpVar(SnmpOid oid)
          Constructs a new SnmpVar object from the specified SnmpOid value.
SnmpVar(java.lang.String name)
          Constructs a new SnmpVar object from the specified String value.
 
Method Summary
 void addInstance(long val)
          Adds an instance part to the oid in the SnmpOid object.
 void addInstance(long[] val)
          Adds an instance part to the oid in the SnmpOid object.
 void addInstance(java.lang.String s)
          Adds an instance part to the oid in the SnmpOid object.
 void clearValue()
          Clears the value associated with this SnmpVar and sets the status to stValueUnspecified.
 java.lang.Object clone()
          Clones the SNMP variable (including value).
 java.lang.Object cloneWithoutValue()
          Clones the SNMP variable.
 void copyValue(SnmpVar srcVar)
          Clones and copies only the value part from another object.
 void copyValueAndOid(SnmpVar srcVar)
          Clones and copies the oid and value part from another object.
 SnmpCounter getCounter32()
          Deprecated. As of JDMK 3.2, replaced by getSnmpCounterValue()
 SnmpGauge getGauge()
          Deprecated. As of JDMK 3.2, replaced by getSnmpGaugeValue()
 SnmpInt getInteger32()
          Deprecated. As of JDMK 3.2, replaced by getSnmpIntValue()
 SnmpIpAddress getIpAddress()
          Deprecated. As of JDMK 3.2, replaced by getSnmpIpAddressValue()
 SnmpOid getOid()
          Returns the complete oid part associated with this SnmpVar.
 SnmpCounter64 getSnmpCounter64Value()
          Returns the value part associated with this SnmpVar.
 SnmpCounter getSnmpCounterValue()
          Returns the value part associated with this SnmpVar.
 SnmpGauge getSnmpGaugeValue()
          Returns the value part associated with this SnmpVar.
 SnmpInt getSnmpIntValue()
          Returns the value part associated with this SnmpVar.
 SnmpIpAddress getSnmpIpAddressValue()
          Returns the value part associated with this SnmpVar.
 SnmpOid getSnmpOid()
          Deprecated. As of JDMK 3.2, replaced by getSnmpOidValue()
 SnmpOid getSnmpOidValue()
          Returns the value part associated with this SnmpVar.
 SnmpOpaque getSnmpOpaqueValue()
          Returns the value part associated with this SnmpVar.
 SnmpStringFixed getSnmpStringFixedValue()
          Returns the value part associated with this SnmpVar.
 SnmpString getSnmpStringValue()
          Returns the value part associated with this SnmpVar.
 SnmpTimeticks getSnmpTimeticksValue()
          Returns the value part associated with this SnmpVar.
 SnmpValue getSnmpValue()
          Returns the value part associated with this SnmpVar.
 java.lang.String getStringValue()
          Returns the printable ASCII representation for the corresponding variable value.
 SnmpTimeticks getTimeTicks()
          Deprecated. As of JDMK 3.2, replaced by getSnmpTimeticksValue()
 int getValueStatus()
          Returns the status of the value associated with this SnmpVar.
 java.lang.String getValueStatusLegend()
          Returns the status of the value associated with this SnmpVar.
 boolean hasVbException()
          Determines if the SnmpVar has an SNMP exception (generated by agent in response to a request).
protected  void illegalCall(java.lang.String s)
          Throws a new SnmpStatusException with an error message.
 boolean isOidEqual(SnmpVar avar)
          Checks whether the oid for this variable completely matches the oid part of the specified SnmpVar object.
 java.lang.String[] resolveVarName(java.lang.String name)
          Consults the MIB storage to resolve the name to its oid type structure.
 void setCounter32Value(int val)
          Deprecated. As of JDMK 3.2, replaced by setSnmpCounterValue(long)
 void setCounter64Value(java.lang.Object val)
          Deprecated. As of JDMK 3.2, replaced by setSnmpCounter64Value(long)
 void setGauge32Value(int val)
          Deprecated. As of JDMK 3.2, replaced by setSnmpGaugeValue(long)
 void setIntegerValue(int val)
          Deprecated. As of JDMK 3.2, replaced by setSnmpIntValue(long)
 void setIpAddressValue(long val)
          Deprecated. As of JDMK 3.2, replaced by setSnmpIpAddressValue(String)
 void setOid(SnmpOid newoid)
          Sets the SnmpOid part associated with this SnmpVar with the specified oid.
 void setOpaqueValue(java.lang.Object val)
          Deprecated. As of JDMK 3.2, replaced by setSnmpOpaqueValue(byte[])
 void setSnmpCounter64Value(long val)
          Sets the SnmpCounter64 value part associated with this SnmpVar with the specified counter 64 value.
 void setSnmpCounterValue(long val)
          Sets the SnmpCounter value part associated with this SnmpVar with the specified counter value.
 void setSnmpGaugeValue(long val)
          Sets the SnmpGauge value part associated with this SnmpVar with the specified gauge value.
 void setSnmpIntValue(long val)
          Sets the SnmpInt value part associated with this SnmpVar with the specified integer value.
 void setSnmpIpAddressValue(java.lang.String val)
          Sets the SnmpIpAddress value part associated with this SnmpVar with the specified ipAddress value.
 void setSnmpOidValue(java.lang.String val)
          Sets the SnmpOid value part associated with this SnmpVar with the specified oid value.
 void setSnmpOpaqueValue(byte[] val)
          Sets the SnmpOpaque value part associated with this SnmpVar with the specified bytes array values.
 void setSnmpStringFixedValue(java.lang.String val)
          Sets the SnmpStringFixed value part associated with this SnmpVar with the specified string value.
 void setSnmpStringValue(java.lang.String val)
          Sets the SnmpString value part associated with this SnmpVar with the specified string value.
 void setSnmpTimeticksValue(long val)
          Sets the SnmpTimeticks value part associated with this SnmpVar with the specified timeticks value.
 void setSnmpValue(SnmpValue val)
          Sets the SnmpValue part associated with this SnmpVar with the specified value.
 void setTimeticksValue(int val)
          Deprecated. As of JDMK 3.2, replaced by setSnmpTimeticksValue(long)
 void setValueEndOfMibView()
          Sets the status to indicate there is no such object for this SnmpVar while doing an SnmpGetNext operation.
 void setValueNoSuchInstance()
          Sets the status to indicate there is no such instance for this SnmpVar.
 void setValueNoSuchObject()
          Sets the status to indicate there is no such object for this SnmpVar.
protected  void setValueValid()
          Sets the status to indicate that the value for this SnmpVar is valid.
 java.lang.String toString()
          Returns the printable ASCII representation for this SnmpVar.
 boolean unspecifiedValue()
          Checks if the value associated with this SnmpVar is unspecified.
 boolean validValue()
          Checks if the object contains a valid accessible value.
 
Methods inherited from class com.sun.jaw.snmp.common.SnmpVarBind
appendInOid, insertInOid
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statusLegend

public static final java.lang.String[] statusLegend
Keeps the legend for the value part of the SnmpVar.

stValueUnspecified

public static final int stValueUnspecified
Useful constant indicating that the status of the SnmpVar object is not initialized.

stValueOk

public static final int stValueOk
Useful constant indicating that the status of the SnmpVar object is valid.

stValueNoSuchObject

public static final int stValueNoSuchObject
Useful constant indicating that the status of the SnmpVar object is noSuchObject. Status of SnmpVar as returned by SNMPv2 agent.

stValueNoSuchInstance

public static final int stValueNoSuchInstance
Useful constant indicating that the status of the SnmpVar object is noSuchInstance. Status of SnmpVar as returned by SNMPv2 agent. In SNMPv1 context, this is appropriate when noSuchName is returned in the response to SnmpGet request.

stValueEndOfMibView

public static final int stValueEndOfMibView
Useful constant indicating that the status of the SnmpVar object is endOfMibView. Status of SnmpVar as returned by SNMPv2 agent. In SNMPv1 context, this is appropriate when noSuchName is returned in the response to SnmpGetNext request.

meta

public static MibStoreIfSrv meta
Reference to a mib store service. If no mib store service is available, the class will not be able to resolved named contained in Object Identifier.
Constructor Detail

SnmpVar

public SnmpVar(SnmpOid oid)
Constructs a new SnmpVar object from the specified SnmpOid value.
Parameters:
oid - The oid part of the SnmpVar.

SnmpVar

public SnmpVar(java.lang.String name)
        throws SnmpStatusException
Constructs a new SnmpVar object from the specified String value. If the name is a MIB variable, it resolves the name with the MIB database.
Parameters:
name - The MIB variable name or a dot-formatted oid String.
Throws:
SnmpStatusException - An error occurred while accessing a MIB node.
Method Detail

resolveVarName

public java.lang.String[] resolveVarName(java.lang.String name)
                                  throws SnmpStatusException
Consults the MIB storage to resolve the name to its oid type structure.
Parameters:
name - The MIB variable name or a dot-formatted oid String.
Returns:
The string array representation of the MIB variable.
Throws:
SnmpStatusException - An error occurred while accessing a MIB node.

getOid

public final SnmpOid getOid()
Returns the complete oid part associated with this SnmpVar.
Returns:
The SnmpOid for this variable.

setOid

public final void setOid(SnmpOid newoid)
Sets the SnmpOid part associated with this SnmpVar with the specified oid. The value part of this SnmpVar will automatically be nulled.
Parameters:
newoid - The new oid.
See Also:
SnmpOid

getSnmpValue

public final SnmpValue getSnmpValue()
Returns the value part associated with this SnmpVar.
Returns:
The SnmpValue for this variable.

setSnmpValue

public final void setSnmpValue(SnmpValue val)
Sets the SnmpValue part associated with this SnmpVar with the specified value. The status is updated to indicate that the value is valid.
Parameters:
val - The new value.
See Also:
SnmpValue

getSnmpCounter64Value

public final SnmpCounter64 getSnmpCounter64Value()
                                          throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpCounter64 value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpCounter64Value

public final void setSnmpCounter64Value(long val)
                                 throws java.lang.IllegalArgumentException
Sets the SnmpCounter64 value part associated with this SnmpVar with the specified counter 64 value. The status is updated to indicate that the value is valid.
Parameters:
val - The new counter 64 value.
Throws:
java.lang.IllegalArgumentException - The specified value is negative or larger than Long.MAX_VALUE.
Since:
JDMK 3.2
See Also:
SnmpCounter64

getSnmpIntValue

public final SnmpInt getSnmpIntValue()
                              throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpInt value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpIntValue

public final void setSnmpIntValue(long val)
                           throws java.lang.IllegalArgumentException
Sets the SnmpInt value part associated with this SnmpVar with the specified integer value. The status is updated to indicate that the value is valid.
Parameters:
val - The new integer value.
Throws:
java.lang.IllegalArgumentException - The specified value is smaller than Integer.MIN_VALUE or larger than Integer.MAX_VALUE.
Since:
JDMK 3.2
See Also:
SnmpInt

getSnmpCounterValue

public final SnmpCounter getSnmpCounterValue()
                                      throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpCounter value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpCounterValue

public final void setSnmpCounterValue(long val)
                               throws java.lang.IllegalArgumentException
Sets the SnmpCounter value part associated with this SnmpVar with the specified counter value. The status is updated to indicate that the value is valid.
Parameters:
val - The new counter value.
Throws:
java.lang.IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.
Since:
JDMK 3.2
See Also:
SnmpCounter

getSnmpGaugeValue

public final SnmpGauge getSnmpGaugeValue()
                                  throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpGauge value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpGaugeValue

public final void setSnmpGaugeValue(long val)
                             throws java.lang.IllegalArgumentException
Sets the SnmpGauge value part associated with this SnmpVar with the specified gauge value. The status is updated to indicate that the value is valid.
Parameters:
val - The new gauge value.
Throws:
java.lang.IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.
Since:
JDMK 3.2
See Also:
SnmpGauge

getSnmpTimeticksValue

public final SnmpTimeticks getSnmpTimeticksValue()
                                          throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpTimeticks value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpTimeticksValue

public final void setSnmpTimeticksValue(long val)
                                 throws java.lang.IllegalArgumentException
Sets the SnmpTimeticks value part associated with this SnmpVar with the specified timeticks value. The status is updated to indicate that the value is valid.
Parameters:
val - The new timeticks value.
Throws:
java.lang.IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.
Since:
JDMK 3.2
See Also:
SnmpTimeticks

getSnmpOidValue

public final SnmpOid getSnmpOidValue()
                              throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpOid value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpOidValue

public final void setSnmpOidValue(java.lang.String val)
                           throws java.lang.IllegalArgumentException
Sets the SnmpOid value part associated with this SnmpVar with the specified oid value. The status is updated to indicate that the value is valid.
Parameters:
val - The new oid value.
Throws:
java.lang.IllegalArgumentException - The specified value is neither a numeric String nor a String of the MIB database.
Since:
JDMK 3.2
See Also:
SnmpOid

getSnmpIpAddressValue

public final SnmpIpAddress getSnmpIpAddressValue()
                                          throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpIpAddress value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpIpAddressValue

public final void setSnmpIpAddressValue(java.lang.String val)
                                 throws java.lang.IllegalArgumentException
Sets the SnmpIpAddress value part associated with this SnmpVar with the specified ipAddress value. The status is updated to indicate that the value is valid.
Parameters:
val - The new ipAddress value.
Throws:
java.lang.IllegalArgumentException - The specified value does not correspond to an ip address.
Since:
JDMK 3.2
See Also:
SnmpIpAddress

getSnmpStringValue

public final SnmpString getSnmpStringValue()
                                    throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpString value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpStringValue

public final void setSnmpStringValue(java.lang.String val)
Sets the SnmpString value part associated with this SnmpVar with the specified string value. The status is updated to indicate that the value is valid.
Parameters:
val - The new string value.
Since:
JDMK 3.2
See Also:
SnmpString

getSnmpOpaqueValue

public final SnmpOpaque getSnmpOpaqueValue()
                                    throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpOpaque value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpOpaqueValue

public final void setSnmpOpaqueValue(byte[] val)
Sets the SnmpOpaque value part associated with this SnmpVar with the specified bytes array values. The status is updated to indicate that the value is valid.
Parameters:
val - The new bytes array value.
Since:
JDMK 3.2
See Also:
SnmpOpaque

getSnmpStringFixedValue

public final SnmpStringFixed getSnmpStringFixedValue()
                                              throws java.lang.ClassCastException
Returns the value part associated with this SnmpVar.
Returns:
The SnmpStringFixed value for this variable.
Throws:
java.lang.ClassCastException - An attempt has been made to cast an object to a subclass of which it is not an instance.
Since:
JDMK 3.2

setSnmpStringFixedValue

public final void setSnmpStringFixedValue(java.lang.String val)
Sets the SnmpStringFixed value part associated with this SnmpVar with the specified string value. The status is updated to indicate that the value is valid.
Parameters:
val - The new string value.
Since:
JDMK 3.2
See Also:
SnmpStringFixed

getValueStatus

public final int getValueStatus()
Returns the status of the value associated with this SnmpVar.
Returns:
The status of the associated value as an integer.

getValueStatusLegend

public final java.lang.String getValueStatusLegend()
Returns the status of the value associated with this SnmpVar.
Returns:
The status of the associated value as a String.

setValueValid

protected void setValueValid()
Sets the status to indicate that the value for this SnmpVar is valid. Accessible only to derived classes.

setValueNoSuchObject

public final void setValueNoSuchObject()
Sets the status to indicate there is no such object for this SnmpVar.

setValueEndOfMibView

public final void setValueEndOfMibView()
Sets the status to indicate there is no such object for this SnmpVar while doing an SnmpGetNext operation.

setValueNoSuchInstance

public final void setValueNoSuchInstance()
Sets the status to indicate there is no such instance for this SnmpVar.

validValue

public final boolean validValue()
Checks if the object contains a valid accessible value.
Returns:
True if the associated value is valid; false otherwise.

clearValue

public final void clearValue()
Clears the value associated with this SnmpVar and sets the status to stValueUnspecified.

hasVbException

public final boolean hasVbException()
Determines if the SnmpVar has an SNMP exception (generated by agent in response to a request).
Returns:
True if the SnmpVar has an SNMP response exception; false otherwise.

unspecifiedValue

public final boolean unspecifiedValue()
Checks if the value associated with this SnmpVar is unspecified.
Returns:
True if the status is unspecified; false otherwise.

copyValueAndOid

public void copyValueAndOid(SnmpVar srcVar)
Clones and copies the oid and value part from another object.
Parameters:
srcVar - The SnmpVar clone.

copyValue

public void copyValue(SnmpVar srcVar)
Clones and copies only the value part from another object.
Parameters:
srcVar - The SnmpVar clone.

isOidEqual

public final boolean isOidEqual(SnmpVar avar)
Checks whether the oid for this variable completely matches the oid part of the specified SnmpVar object.
Parameters:
avar - The object whose oid part is to be matched.
Returns:
True if the oid part matches exactly; false otherwise.

cloneWithoutValue

public final java.lang.Object cloneWithoutValue()
Clones the SNMP variable. It does not clone the value portion. This is recommended if you do not want to clone value portion.
Returns:
A new object with value part set to null.

clone

public final java.lang.Object clone()
Clones the SNMP variable (including value).
Returns:
The SNMP variable clone.
Overrides:
clone in class java.lang.Object

addInstance

public final void addInstance(long val)
Adds an instance part to the oid in the SnmpOid object. Note that there is no getInstance method. This method will directly add the instance to the SnmpOid object.
Parameters:
val - The sub-identifier to be appended to the oid.

addInstance

public final void addInstance(long[] val)
                       throws SnmpStatusException
Adds an instance part to the oid in the SnmpOid object. Note that there is no getInstance method. This method will directly add the instance to the SnmpOid object.
Parameters:
val - The sub-identifier array to be appended to the oid.
Throws:
SnmpStatusException - An error occurred while accessing a MIB node.

addInstance

public final void addInstance(java.lang.String s)
                       throws SnmpStatusException
Adds an instance part to the oid in the SnmpOid object. Note that there is no getInstance method. This method will directly add the instance to the SnmpOid object.
Parameters:
str - Dot-formatted sub-identifier String to be appended to the oid.
Throws:
SnmpStatusException - An error occurred while accessing a MIB node.

getStringValue

public final java.lang.String getStringValue()
Returns the printable ASCII representation for the corresponding variable value.
Returns:
The printable ASCII representation.

toString

public final java.lang.String toString()
Returns the printable ASCII representation for this SnmpVar.
Returns:
The printable ASCII representation.
Overrides:
toString in class SnmpVarBind

illegalCall

protected void illegalCall(java.lang.String s)
                    throws SnmpStatusException
Throws a new SnmpStatusException with an error message.
Parameters:
s - The error message.
Throws:
SnmpStatusException -  

getInteger32

public final SnmpInt getInteger32()
                           throws java.lang.ClassCastException
Deprecated. As of JDMK 3.2, replaced by getSnmpIntValue()

setIntegerValue

public final void setIntegerValue(int val)
Deprecated. As of JDMK 3.2, replaced by setSnmpIntValue(long)

getCounter32

public final SnmpCounter getCounter32()
                               throws java.lang.ClassCastException
Deprecated. As of JDMK 3.2, replaced by getSnmpCounterValue()

setCounter32Value

public final void setCounter32Value(int val)
Deprecated. As of JDMK 3.2, replaced by setSnmpCounterValue(long)

getGauge

public final SnmpGauge getGauge()
                         throws java.lang.ClassCastException
Deprecated. As of JDMK 3.2, replaced by getSnmpGaugeValue()

setGauge32Value

public final void setGauge32Value(int val)
Deprecated. As of JDMK 3.2, replaced by setSnmpGaugeValue(long)

getTimeTicks

public final SnmpTimeticks getTimeTicks()
                                 throws java.lang.ClassCastException
Deprecated. As of JDMK 3.2, replaced by getSnmpTimeticksValue()

setTimeticksValue

public final void setTimeticksValue(int val)
Deprecated. As of JDMK 3.2, replaced by setSnmpTimeticksValue(long)

getIpAddress

public final SnmpIpAddress getIpAddress()
                                 throws java.lang.ClassCastException
Deprecated. As of JDMK 3.2, replaced by getSnmpIpAddressValue()

setIpAddressValue

public final void setIpAddressValue(long val)
Deprecated. As of JDMK 3.2, replaced by setSnmpIpAddressValue(String)

getSnmpOid

public final SnmpOid getSnmpOid()
                         throws java.lang.ClassCastException
Deprecated. As of JDMK 3.2, replaced by getSnmpOidValue()

setOpaqueValue

public final void setOpaqueValue(java.lang.Object val)
                          throws SnmpStatusException
Deprecated. As of JDMK 3.2, replaced by setSnmpOpaqueValue(byte[])

setCounter64Value

public final void setCounter64Value(java.lang.Object val)
                             throws SnmpStatusException
Deprecated. As of JDMK 3.2, replaced by setSnmpCounter64Value(long)