|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.snmp2.SnmpNotifyTable
This class maintains a list of all SnmpNotifyEntry objects and provides methods to operate on the list.
Method Summary | |
boolean |
addEntry(SnmpNotifyEntry entry)
Adds the SnmpNotifyEntry object to the list of SnmpNotifyEntry objects maintained in this class. |
void |
deSerialize()
DeSerializes the file "NotifyEntry.ser" to get a list of SnmpNotifyEntry objects. |
void |
deSerialize(java.io.ObjectInputStream in)
DeSerializes the SnmpNotifyEntry objects from the particular input Stream to the list of SnmpNotifyEntry objects. |
SnmpNotifyEntry |
getEntry(byte[] index)
Gets the SnmpNotifyEntry associated with the specified key. |
SnmpNotifyEntry |
getEntry(java.lang.Object key)
Gets the SnmpNotifyEntry associated with the specified key. |
java.util.Enumeration |
getEnumeration()
Returns an enumeration of all the SnmpNotifyEntry objects maintained in this class. |
void |
removeAllEntries()
Deletes all the SnmpNotifyEntry objects maintained in this class. |
boolean |
removeEntry(byte[] index)
Deletes the SnmpNotifyEntry corresponding to the index from the list of SnmpNotifyEntry objects. |
boolean |
removeEntry(SnmpNotifyEntry entry)
Deletes this particlar SnmpNotifyEntry object from the list of SnmpNotifyEntry objects. |
void |
serialize()
Stores the list of SnmpNotifyEntry objects in the serialized file "NotifyEntry.ser" |
void |
serialize(java.io.ObjectOutputStream out)
Serializes the list of SnmpNotifyEntry objects into particular output Stream specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.util.Enumeration getEnumeration()
public void removeAllEntries()
public boolean addEntry(SnmpNotifyEntry entry)
entry
- The SnmpNotifyEntry which needs to be added to the list
of SnmpNotifyEntry objects.java.lang.NullPointerException
- if the entry is null.public SnmpNotifyEntry getEntry(java.lang.Object key)
key
- The key corresponding to which the SnmpNotifyEntry
is to be retrieved.public SnmpNotifyEntry getEntry(byte[] index)
index
- The index corresponding to which the SnmpNotifyEntry
is to be retrieved.public boolean removeEntry(byte[] index)
index
- The index for which the SnmpNotifyEntry object is to
be deleted.java.lang.NullPointerException
- if the index is null.public boolean removeEntry(SnmpNotifyEntry entry)
entry
- The SnmpNotifyEntry object that is to be deleted.public void serialize()
public void deSerialize()
public void serialize(java.io.ObjectOutputStream out)
out
- The ObjectOutputStream for serializationpublic void deSerialize(java.io.ObjectInputStream in)
in
- The ObjectInputStream for deSerialization
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |