public abstract class

SnmpParams

extends Object
implements SnmpDefinitions
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpParams

Class Overview

This class is the base class of all parameters that are used when making SNMP requests to an SnmpPeer.

This API is a Sun Microsystems internal API and is subject to change without notice.

Summary

[Expand]
Inherited Constants
From interface com.sun.jmx.snmp.SnmpDefinitions
Public Methods
abstract boolean allowSnmpSets()
Checks whether parameters are in place for an SNMP set operation.
int getProtocolVersion()
Returns the version of the protocol to use.
void setProtocolVersion(int protocolversion)
Sets the version of the protocol to be used.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public abstract boolean allowSnmpSets ()

Checks whether parameters are in place for an SNMP set operation.

Returns
  • true if parameters are in place, false otherwise.

public int getProtocolVersion ()

Returns the version of the protocol to use. The returned value is:

Returns
  • The version of the protocol to use.

public void setProtocolVersion (int protocolversion)

Sets the version of the protocol to be used. The version should be identified using the definitions contained in com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions.
For instance if you wish to use SNMPv2, you can call the method as follows:

 setProtocolVersion(SnmpDefinitions.snmpVersionTwo);
 

Parameters
protocolversion The version of the protocol to be used.