HOME

com.ireasoning.protocol.snmp
Interface SnmpDataType

All Superinterfaces:
Msg, Serializable
All Known Implementing Classes:
SnmpCounter64, SnmpInt, SnmpNull, SnmpOctetString, SnmpOID, SnmpPdu, SnmpUInt, SnmpV1Trap, SnmpVarBind

public interface SnmpDataType
extends Serializable, Msg

This class is the interface which all SNMP data type classes should implement.


Field Summary
static int BITS
          Snmp BITS data type, which is the same as OCTETSTRING
static int BITSTRING
          Snmp BIT STRING data type
static int COUNTER32
          Snmp 32-bit counter data type
static int COUNTER64
          Snmp 64-bit counter data type
static int END_OF_MIB_VIEW
          Snmp EndOfMibView data type
static SnmpDataType END_OF_MIB_VIEW_OBJECT
          Snmp EndOfMibView data type object
static int GAUGE32
          Snmp 32-bit gauge data type
static int INTEGER
          Snmp Integer data type
static int IPADDRESS
          Snmp ip address data type
static int NO_SUCH_INSTANCE
          Snmp NoSuchInstance data type
static SnmpDataType NO_SUCH_INSTANCE_OBJECT
          Snmp NoSuchInstance data type object
static int NO_SUCH_OBJECT
          Snmp NoSuchObject data type
static SnmpDataType NO_SUCH_OBJECT_OBJECT
          Snmp NoSuchObject data type object
static int NULL
          Snmp null data type
static int OCTETSTRING
          Snmp octet string data type
static int OID
          Snmp object identifier data type
static int OPAQUE
          Snmp opaque data type
static int PDU
          SNMP PDU data type
static int SEQUENCE
           
static int SEQUENCEOF
           
static long serialVersionUID
           
static int TIMETICKS
          Snmp time ticks data type
static int UNSIGNED32
          Snmp unsigned 32-bit integer data type
static int VARBIND
          Snmp variable binding data type
 
Fields inherited from interface com.ireasoning.protocol.Msg
ERROR_TYPE
 
Method Summary
 SnmpDataType copy()
          Makes a copy of itself
 int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
          For internal use
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int getType()
          Returns the object data type, such as SnmpDataType.INTEGER, SnmpDataType.OCTETSTRING, etc.
 String getTypeString()
          Returns the string format of this data type
 int hashCode()
          Returns a hash code value for the object
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
Snmp Integer data type

See Also:
Constant Field Values

BITSTRING

public static final int BITSTRING
Snmp BIT STRING data type

See Also:
Constant Field Values

OCTETSTRING

public static final int OCTETSTRING
Snmp octet string data type

See Also:
Constant Field Values

BITS

public static final int BITS
Snmp BITS data type, which is the same as OCTETSTRING

See Also:
Constant Field Values

NULL

public static final int NULL
Snmp null data type

See Also:
Constant Field Values

OID

public static final int OID
Snmp object identifier data type

See Also:
Constant Field Values

IPADDRESS

public static final int IPADDRESS
Snmp ip address data type

See Also:
Constant Field Values

COUNTER32

public static final int COUNTER32
Snmp 32-bit counter data type

See Also:
Constant Field Values

GAUGE32

public static final int GAUGE32
Snmp 32-bit gauge data type

See Also:
Constant Field Values

UNSIGNED32

public static final int UNSIGNED32
Snmp unsigned 32-bit integer data type

See Also:
Constant Field Values

TIMETICKS

public static final int TIMETICKS
Snmp time ticks data type

See Also:
Constant Field Values

OPAQUE

public static final int OPAQUE
Snmp opaque data type

See Also:
Constant Field Values

COUNTER64

public static final int COUNTER64
Snmp 64-bit counter data type

See Also:
Constant Field Values

PDU

public static final int PDU
SNMP PDU data type

See Also:
Constant Field Values

NO_SUCH_OBJECT

public static final int NO_SUCH_OBJECT
Snmp NoSuchObject data type

See Also:
Constant Field Values

NO_SUCH_OBJECT_OBJECT

public static final SnmpDataType NO_SUCH_OBJECT_OBJECT
Snmp NoSuchObject data type object


NO_SUCH_INSTANCE

public static final int NO_SUCH_INSTANCE
Snmp NoSuchInstance data type

See Also:
Constant Field Values

NO_SUCH_INSTANCE_OBJECT

public static final SnmpDataType NO_SUCH_INSTANCE_OBJECT
Snmp NoSuchInstance data type object


END_OF_MIB_VIEW

public static final int END_OF_MIB_VIEW
Snmp EndOfMibView data type

See Also:
Constant Field Values

END_OF_MIB_VIEW_OBJECT

public static final SnmpDataType END_OF_MIB_VIEW_OBJECT
Snmp EndOfMibView data type object


SEQUENCE

public static final int SEQUENCE
See Also:
Constant Field Values

SEQUENCEOF

public static final int SEQUENCEOF
See Also:
Constant Field Values

VARBIND

public static final int VARBIND
Snmp variable binding data type

See Also:
Constant Field Values
Method Detail

copy

public SnmpDataType copy()
Makes a copy of itself

Returns:
a deep copy of this object

getType

public int getType()
Returns the object data type, such as SnmpDataType.INTEGER, SnmpDataType.OCTETSTRING, etc.

Specified by:
getType in interface Msg
Returns:
the object data type

getTypeString

public String getTypeString()
Returns the string format of this data type


encode

public int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
           throws SnmpEncodingException
For internal use

Throws:
SnmpEncodingException

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Returns:
true if this object is the same as the obj argument; false otherwise

hashCode

public int hashCode()
Returns a hash code value for the object

Returns:
a hash code value for the object

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.