Methods Summary |
---|
public abstract boolean | allowSnmpSets()Checks whether parameters are in place for an SNMP set operation.
|
public int | getProtocolVersion()Returns the version of the protocol to use.
The returned value is:
- {@link com.sun.jmx.snmp.SnmpDefinitions#snmpVersionOne snmpVersionOne} if the protocol is SNMPv1
- {@link com.sun.jmx.snmp.SnmpDefinitions#snmpVersionTwo snmpVersionTwo} if the protocol is SNMPv2
- {@link com.sun.jmx.snmp.SnmpDefinitions#snmpVersionThree snmpVersionThree} if the protocol is SNMPv3
return protocolVersion ;
|
public void | setProtocolVersion(int protocolversion)Sets the version of the protocol to be used.
The version should be identified using the definitions
contained in
{@link com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions}.
For instance if you wish to use SNMPv2, you can call the method as follows:
setProtocolVersion(SnmpDefinitions.snmpVersionTwo);
this.protocolVersion = protocolversion ;
|