HOME

com.ireasoning.protocol.snmp
Class AgentEvent

java.lang.Object
  extended bycom.ireasoning.protocol.snmp.AgentEvent
All Implemented Interfaces:
Msg, Serializable

public class AgentEvent
extends Object
implements Msg

An event object indicates event occurred on agent side

See Also:
Serialized Form

Field Summary
static int AUTHENTICATION_FAILURE
          AuthenticationFailure.
static int RELOAD_CONFIG
          Indicates config file is reloaded
 
Fields inherited from interface com.ireasoning.protocol.Msg
ERROR_TYPE
 
Constructor Summary
AgentEvent(int type)
          Constructor
AgentEvent(int type, SnmpPdu pdu)
          Constructor
 
Method Summary
 SnmpPdu getPdu()
          Returns the PDU object just received by agent.
 int getType()
          Returns the event type
 String getTypeString()
          Returns the string representation of type
 String toString()
          Returns a string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTHENTICATION_FAILURE

public static final int AUTHENTICATION_FAILURE
AuthenticationFailure. Either community strings didn't match or SNMPv3 security check failed.

See Also:
Constant Field Values

RELOAD_CONFIG

public static final int RELOAD_CONFIG
Indicates config file is reloaded

See Also:
Constant Field Values
Constructor Detail

AgentEvent

public AgentEvent(int type)
Constructor


AgentEvent

public AgentEvent(int type,
                  SnmpPdu pdu)
Constructor

Method Detail

getType

public int getType()
Returns the event type

Specified by:
getType in interface Msg

getTypeString

public String getTypeString()
Returns the string representation of type


getPdu

public SnmpPdu getPdu()
Returns the PDU object just received by agent. It might be an empty PDU if received packet is corrupted.


toString

public String toString()
Returns a string representation of this object


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.