com.adventnet.snmp.beans
Class SnmpPropertyChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.adventnet.snmp.beans.SnmpPropertyChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class SnmpPropertyChangeEvent
extends java.util.EventObject

This class is the event generated by bean components whenever there is change in snmp parameters of the beans, e.g. MibBrowser classes.

You can get the SNMP property changed values, ,using the methods of this event object. The changed property value can be obtained with

event.getSnmpProperty(); And you can decide as to what it is by other methods in this class.

See Also:
Serialized Form

Field Summary
static int AUTHPASSWORD
          to specify the property as auth password
static int AUTHPROTOCOL
          to specify the property as auth protocol
static int COMMUNITY
          to specify the property as community
static int CONTEXTID
          to specify the property as context id
static int CONTEXTNAME
          to specify the property as context name
static int HOSTNAME
          to specify the property as target host name
static int MAXREPETITIONS
          to specify the property as max-repetition
static int MIBMODULE
          to specify the property as mib module
static int NONREPEATERS
          to specify the property as non repeaters
static int OBJECTID
          to specify the property as object id
static int PORT
          to specify the property as target port
static int PRINCIPAL
          to specify the property as user name
static int PRIVPASSWORD
          to specify the property as priv password
static int RETRIES
          to specify the property as retries
static int TIMEOUT
          to specify the property as time-out
static int VERSION
          to specify the property as version
static int WRITECOMMUNITY
          to specify the property as writecommunity
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SnmpPropertyChangeEvent(java.lang.Object source, int type, java.lang.Object input)
          This is the constructor for defining this event
 
Method Summary
 java.lang.Object getSnmpProperty()
          get property value as its original object
 boolean isAuthPasswordChanged()
          returns true if the property is AuthPassword changed
 boolean isAuthProtocolChanged()
          returns true if the property is AuthProtocol changed
 boolean isCommunityChanged()
          returns true if the property is Community changed
 boolean isContextIDChanged()
          returns true if the property is ContextID changed
 boolean isContextNameChanged()
          returns true if the property is ContextName changed
 boolean isHostNameChanged()
          returns true if the property is HostName changed
 boolean isMibModuleChanged()
          returns true if the property is MibModule changed
 boolean isObjectIDChanged()
          returns true if the property is ObjectID changed
 boolean isPortChanged()
          returns true if the property is port changed
 boolean isPrincipalChanged()
          returns true if the property is Principal changed
 boolean isPrivPasswordChanged()
          returns true if the property is PrivPassword changed
 boolean isRetriesChanged()
          returns true if the property is retries changed
 boolean isTimeoutChanged()
          returns true if the property is timeout changed
 boolean isVersionChanged()
          returns true if the property is version changed
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HOSTNAME

public static int HOSTNAME
to specify the property as target host name

PORT

public static int PORT
to specify the property as target port

VERSION

public static int VERSION
to specify the property as version

TIMEOUT

public static int TIMEOUT
to specify the property as time-out

RETRIES

public static int RETRIES
to specify the property as retries

COMMUNITY

public static int COMMUNITY
to specify the property as community

MIBMODULE

public static int MIBMODULE
to specify the property as mib module

OBJECTID

public static int OBJECTID
to specify the property as object id

PRINCIPAL

public static int PRINCIPAL
to specify the property as user name

AUTHPROTOCOL

public static int AUTHPROTOCOL
to specify the property as auth protocol

AUTHPASSWORD

public static int AUTHPASSWORD
to specify the property as auth password

PRIVPASSWORD

public static int PRIVPASSWORD
to specify the property as priv password

CONTEXTID

public static int CONTEXTID
to specify the property as context id

CONTEXTNAME

public static int CONTEXTNAME
to specify the property as context name

WRITECOMMUNITY

public static int WRITECOMMUNITY
to specify the property as writecommunity

NONREPEATERS

public static int NONREPEATERS
to specify the property as non repeaters

MAXREPETITIONS

public static int MAXREPETITIONS
to specify the property as max-repetition
Constructor Detail

SnmpPropertyChangeEvent

public SnmpPropertyChangeEvent(java.lang.Object source,
                               int type,
                               java.lang.Object input)
This is the constructor for defining this event
Parameters:
source - - this is the source object from which this event is generated .

type - this may be any one of the constants mentioned above for example HOSTNAME, PORT etc.

input - this is the value to be set to property corresponding to the type of the property

Method Detail

getSnmpProperty

public java.lang.Object getSnmpProperty()
get property value as its original object

isHostNameChanged

public boolean isHostNameChanged()
returns true if the property is HostName changed

isPortChanged

public boolean isPortChanged()
returns true if the property is port changed

isVersionChanged

public boolean isVersionChanged()
returns true if the property is version changed

isTimeoutChanged

public boolean isTimeoutChanged()
returns true if the property is timeout changed

isRetriesChanged

public boolean isRetriesChanged()
returns true if the property is retries changed

isCommunityChanged

public boolean isCommunityChanged()
returns true if the property is Community changed

isMibModuleChanged

public boolean isMibModuleChanged()
returns true if the property is MibModule changed

isObjectIDChanged

public boolean isObjectIDChanged()
returns true if the property is ObjectID changed

isPrincipalChanged

public boolean isPrincipalChanged()
returns true if the property is Principal changed

isAuthProtocolChanged

public boolean isAuthProtocolChanged()
returns true if the property is AuthProtocol changed

isAuthPasswordChanged

public boolean isAuthPasswordChanged()
returns true if the property is AuthPassword changed

isPrivPasswordChanged

public boolean isPrivPasswordChanged()
returns true if the property is PrivPassword changed

isContextIDChanged

public boolean isContextIDChanged()
returns true if the property is ContextID changed

isContextNameChanged

public boolean isContextNameChanged()
returns true if the property is ContextName changed


Copyright (c)AdventNet Inc., 1996-2004