com.sun.jdmk.comm
Interface SnmpInformHandler

All Superinterfaces:
SnmpDefinitions

Deprecated. Use package com.sun.management.comm in preference to classes in this package. This class may be removed in a future version of Java DMK.

public interface SnmpInformHandler
extends SnmpDefinitions

Provides the callback methods that are required to be implemented by the application when an inform response is received by the agent.

Each inform request can be provided with an object that implements this callback interface. An application then uses the SNMP adaptor to start an SNMP inform request, which marks the request as active. The methods in this callback interface get invoked when any of the following happens:


Field Summary
 
Fields inherited from interface javax.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
 void processSnmpInternalError(SnmpInformRequest request, String errmsg)
          Deprecated. This callback is invoked when any form of internal error occurs.
 void processSnmpPollData(SnmpInformRequest request, int errStatus, int errIndex, SnmpVarBindList vblist)
          Deprecated. This callback is invoked when a manager responds to an SNMP inform request.
 void processSnmpPollTimeout(SnmpInformRequest request)
          Deprecated. This callback is invoked when a manager does not respond within the specified timeout value to the SNMP inform request.
 

Method Detail

processSnmpPollData

public void processSnmpPollData(SnmpInformRequest request,
                                int errStatus,
                                int errIndex,
                                SnmpVarBindList vblist)
Deprecated. 
This callback is invoked when a manager responds to an SNMP inform request. The callback should check the error status of the inform request to determine the kind of response.

Parameters:
request - The SnmpInformRequest associated with this callback.
errStatus - The status of the request.
errIndex - The index in the list that caused the error.
vblist - The Response varBind list for the successful request.

processSnmpPollTimeout

public void processSnmpPollTimeout(SnmpInformRequest request)
Deprecated. 
This callback is invoked when a manager does not respond within the specified timeout value to the SNMP inform request. The number of tries have also been exhausted.

Parameters:
request - The SnmpInformRequest associated with this callback.

processSnmpInternalError

public void processSnmpInternalError(SnmpInformRequest request,
                                     String errmsg)
Deprecated. 
This callback is invoked when any form of internal error occurs.

Parameters:
request - The SnmpInformRequest associated with this callback.
errmsg - The String describing the internal error.

FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

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