HOME

com.ireasoning.protocol.snmp
Class SubagentEvent

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

public class SubagentEvent
extends Object
implements Msg

An event object indicates the state changes of subagent

See Also:
Serialized Form

Field Summary
static int CLOSE_EVENT
          Close of subagent event, indicating subagent connection is closed
static int OPEN_EVENT
          Subagent open event, indicating new subagent connection has been established
static int REGISTER_EVENT
          registration event
static int UNREGISTER_EVENT
          unregistration event
 
Fields inherited from interface com.ireasoning.protocol.Msg
ERROR_TYPE
 
Constructor Summary
SubagentEvent()
          Constructor
 
Method Summary
 Vector getOIDs()
          Returns a list of SnmpOID objects which are associated with certain events.
 Socket getSocket()
          Returns the socket object of subagent
 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

OPEN_EVENT

public static final int OPEN_EVENT
Subagent open event, indicating new subagent connection has been established

See Also:
Constant Field Values

REGISTER_EVENT

public static final int REGISTER_EVENT
registration event

See Also:
Constant Field Values

UNREGISTER_EVENT

public static final int UNREGISTER_EVENT
unregistration event

See Also:
Constant Field Values

CLOSE_EVENT

public static final int CLOSE_EVENT
Close of subagent event, indicating subagent connection is closed

See Also:
Constant Field Values
Constructor Detail

SubagentEvent

public SubagentEvent()
Constructor

Method Detail

getOIDs

public Vector getOIDs()
Returns a list of SnmpOID objects which are associated with certain events. For register/unregister/close events, they are the registered mib subtrees.


getSocket

public Socket getSocket()
Returns the socket object of subagent


getType

public int getType()
Returns the event type

Specified by:
getType in interface Msg

getTypeString

public String getTypeString()
Returns the string representation of type


toString

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


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.