|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.adventnet.snmp.beans.SnmpPropertyChangeEvent
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.
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 |
public static int HOSTNAME
public static int PORT
public static int VERSION
public static int TIMEOUT
public static int RETRIES
public static int COMMUNITY
public static int MIBMODULE
public static int OBJECTID
public static int PRINCIPAL
public static int AUTHPROTOCOL
public static int AUTHPASSWORD
public static int PRIVPASSWORD
public static int CONTEXTID
public static int CONTEXTNAME
public static int WRITECOMMUNITY
public static int NONREPEATERS
public static int MAXREPETITIONS
Constructor Detail |
public SnmpPropertyChangeEvent(java.lang.Object source, int type, java.lang.Object input)
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 |
public java.lang.Object getSnmpProperty()
public boolean isHostNameChanged()
public boolean isPortChanged()
public boolean isVersionChanged()
public boolean isTimeoutChanged()
public boolean isRetriesChanged()
public boolean isCommunityChanged()
public boolean isMibModuleChanged()
public boolean isObjectIDChanged()
public boolean isPrincipalChanged()
public boolean isAuthProtocolChanged()
public boolean isAuthPasswordChanged()
public boolean isPrivPasswordChanged()
public boolean isContextIDChanged()
public boolean isContextNameChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |