FileDocCategorySizeDatePackage
SnmpInformHandler.javaAPI DocJava SE 5 API2695Fri Aug 26 14:55:06 BST 2005com.sun.jmx.snmp.daemon

SnmpInformHandler

public interface SnmpInformHandler implements com.sun.jmx.snmp.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:

  • The agent receives the SNMP inform response.
  • The agent does not receive any response within a specified time and the number of tries have exceeded the limit (timeout condition).
  • An internal error occurs while processing or parsing the inform request.

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

Fields Summary
Constructors Summary
Methods Summary
public abstract voidprocessSnmpInternalError(SnmpInformRequest request, java.lang.String errmsg)
This callback is invoked when any form of internal error occurs.

param
request The SnmpInformRequest associated with this callback.
param
errmsg The String describing the internal error.

public abstract voidprocessSnmpPollData(SnmpInformRequest request, int errStatus, int errIndex, com.sun.jmx.snmp.SnmpVarBindList vblist)
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.

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

public abstract voidprocessSnmpPollTimeout(SnmpInformRequest request)
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.

param
request The SnmpInformRequest associated with this callback.