|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.utils.agent.AgentEventObject
com.adventnet.snmp.snmp2.agent.RegistrationEvent
public class RegistrationEvent
This event is fired by the source classes which are interested in performing registration with the RegistrationListeners.
For example,
The VarBindRequestListener can fire this event inorder to register with the dispatcher(RegistrationListener) for their interested Oids along with their subidlist.
| Field Summary | |
|---|---|
(package private) VarBindRequestListener |
listener
|
(package private) java.lang.String |
oid
|
(package private) java.lang.String |
status
This says status of the registering Oid takes values "add","remove","modify" |
(package private) int[] |
subidList
|
| Fields inherited from class com.adventnet.utils.agent.AgentEventObject |
|---|
source |
| Constructor Summary | |
|---|---|
RegistrationEvent(java.lang.Object source,
VarBindRequestListener listener,
java.lang.String oid,
int[] subidList)
This contructor when the source is different from the registration. |
|
RegistrationEvent(java.lang.Object source,
VarBindRequestListener listener,
java.lang.String oid,
int[] subidList,
java.lang.String status)
This contructor when the source is different from the registration. |
|
RegistrationEvent(VarBindRequestListener listener,
java.lang.String oid,
int[] subidList)
Constructor for the RegistrationEvent |
|
RegistrationEvent(VarBindRequestListener listener,
java.lang.String oid,
int[] subidList,
java.lang.String status)
Constructor for the RegistrationEvent |
|
| Method Summary | |
|---|---|
VarBindRequestListener |
getListener()
Gets the VarBindRequestListener. |
java.lang.String |
getOid()
Gets the Oid for which the source of this event is going to register. |
java.lang.String |
getStatus()
Gets the status of the RegistrationEvent operation like add/delete /modify. |
int[] |
getSubidList()
Gets the subidlist for which the source of this event is going to register along with its OID. |
void |
setStatus(java.lang.String status)
Sets the status of the RegistrationEvent operation like add/delete /modify. |
| Methods inherited from class com.adventnet.utils.agent.AgentEventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
java.lang.String oid
int[] subidList
java.lang.String status
VarBindRequestListener listener
| Constructor Detail |
|---|
public RegistrationEvent(VarBindRequestListener listener,
java.lang.String oid,
int[] subidList)
listener - the VarBindRequestListener for a particular OIDoid - the listener's OIDsubidList - the subid List of the OID
public RegistrationEvent(VarBindRequestListener listener,
java.lang.String oid,
int[] subidList,
java.lang.String status)
listener - listener of the varbind.oid - value of the OIDsubidList - subId list of the OIDstatus - status of the operation.
public RegistrationEvent(java.lang.Object source,
VarBindRequestListener listener,
java.lang.String oid,
int[] subidList)
source - source of the listener.listener - listener of the varbind.oid - value of the OIDsubidList - the subId list of the OID.
public RegistrationEvent(java.lang.Object source,
VarBindRequestListener listener,
java.lang.String oid,
int[] subidList,
java.lang.String status)
source - source of the listener.listener - listener of the varbind.oid - value of the OIDsubidList - the subId list of the OID.status - status of the operation.| Method Detail |
|---|
public java.lang.String getOid()
public int[] getSubidList()
public java.lang.String getStatus()
setStatus(String status)public void setStatus(java.lang.String status)
status - the status of the operation.getStatus()public VarBindRequestListener getListener()
This method can be used by the dispatcher inorder to get the VarBindRequestListener to which the pdu will be given when it comes for its registered oid mentioned in this event.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||