com.adventnet.snmp.beans
Interface ResultListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
BarGraphBean, LineGraphBean, ResultAdapter, SnmpPollerImpl, SnmpRequestServerImpl, SnmpTableImpl, SnmpTargetImpl

public interface ResultListener
extends java.util.EventListener

This interface defines the listener for SNMP responses, or ResultEvent objects. These objects are generated by the SNMP services in the AdventNet SNMP library, e.g. SnmpPoller, or SnmpRequestServer.

See Also:
ResultEvent, SnmpTarget

Method Summary
 void setNumericResult(long j)
          The method is called in for responses with numeric valued data, e.g, COUNTER.
 void setResult(ResultEvent e)
          The method is always called in for ResultEvent generation.
 void setStringResult(java.lang.String s)
          The method is called in responses with String valued data, e.g, OCTET STRING.
 

Method Detail

setResult

public void setResult(ResultEvent e)
The method is always called in for ResultEvent generation. It is called whenever an SNMP response is received at the generator of the event, e.g. SnmpRequestServer, or when a timeout occurs, if event generation on timeout has been requested. The ResultEvent object will have more information on the SNMP response.


setNumericResult

public void setNumericResult(long j)
The method is called in for responses with numeric valued data, e.g, COUNTER. This method is called in whenever an SNMP response comes in, where the data returned by the agent is numeric. The ResultEvent object will have more information on the SNMP response


setStringResult

public void setStringResult(java.lang.String s)
The method is called in responses with String valued data, e.g, OCTET STRING. This method is in called whenever an SNMP response comes in, where the data returned by the agent is String . The ResultEvent object will have more information on the SNMP response



Copyright (c)ZOHO Corp. 1996-2012