com.sun.management.snmp.manager
Class SnmpParams

java.lang.Object
  extended by com.sun.management.snmp.manager.SnmpParams
All Implemented Interfaces:
SnmpDefinitions
Direct Known Subclasses:
SnmpParameters, SnmpV3Parameters

public abstract class SnmpParams
extends Object
implements SnmpDefinitions

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

Since:
Java DMK 5.1

Field Summary
 
Fields inherited from interface com.sun.management.snmp.SnmpDefinitions
authMask, authNoPriv, authPriv, authPrivMask, CtxtConsFlag, noAuthNoPriv, noGroupName, noSuchContext, noSuchView, notInView, pduGetBulkRequestPdu, pduGetNextRequestPdu, pduGetRequestPdu, pduGetResponsePdu, pduInformRequestPdu, pduReportPdu, pduSetRequestPdu, pduV1TrapPdu, pduV2TrapPdu, pduWalkRequest, privMask, reportableFlag, snmpAuthNotSupported, snmpBadSecurityLevel, snmpPrivNotSupported, snmpReqAborted, snmpReqEncodingError, snmpReqHandleTooBig, snmpReqInternalError, snmpReqPacketOverflow, snmpReqRefireAfterVbFix, snmpReqSocketIOError, snmpReqTimeout, snmpReqTooBigImpossible, snmpReqUnknownError, snmpRspAuthorizationError, snmpRspBadValue, snmpRspCommitFailed, snmpRspDecodingError, snmpRspEndOfTable, snmpRspGenErr, snmpRspInconsistentName, snmpRspInconsistentValue, snmpRspNoAccess, snmpRspNoCreation, snmpRspNoError, snmpRspNoSuchName, snmpRspNotWritable, snmpRspReadOnly, snmpRspResourceUnavailable, snmpRspTooBig, snmpRspUndoFailed, snmpRspWrongEncoding, snmpRspWrongLength, snmpRspWrongType, snmpRspWrongValue, snmpUnknownPrincipal, snmpUsmBadEngineId, snmpUsmInvalidTimeliness, snmpUsmSecurityModel, snmpV1AccessControlModel, snmpV1MsgProcessingModel, snmpV1SecurityModel, snmpV2AccessControlModel, snmpV2MsgProcessingModel, snmpV2SecurityModel, snmpV3AccessControlModel, snmpV3MsgProcessingModel, snmpVersionOne, snmpVersionThree, snmpVersionTwo, snmpWrongSnmpVersion, trapAuthenticationFailure, trapColdStart, trapEgpNeighborLoss, trapEnterpriseSpecific, trapLinkDown, trapLinkUp, trapWarmStart
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allowSnmpSets

public abstract boolean allowSnmpSets()
Checks whether parameters are in place for an SNMP set operation.

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

getProtocolVersion

public int getProtocolVersion()
Returns the version of the protocol to use. The returned value is:

Returns:
The version of the protocol to use.

setProtocolVersion

public void setProtocolVersion(int protocolVersion)
Sets the version of the protocol to be used. The version should be identified using the definitions contained in 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.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

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