|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.snmp2.vacm.VacmContextTable
This class maintains a list of VacmContextEntry Objects for each contextName in the VacmContextEntry. It has methods to get, add and remove entries. The methods getEntry, addEntry and removeEntry relay on the getKey method in the VacmContextEntry to perform the respective operations. The API user need not instaniate this class as it is instantiated by the SnmpAPI constructor. The SnmpAPI provides methods to access the VacmContextTable.
SnmpAPI
Method Summary | |
boolean |
addEntry(VacmContextEntry entry)
Adds the VacmContextEntry to the list of VacmContextEntry
objects. |
void |
deSerialize(java.io.ObjectInputStream in)
Reads the Context entries from the ObjectinputStream specified. |
VacmContextEntry |
getEntry(byte[] name)
Returns the VacmContextEntry from the list of VacmContextEntry Objects corresponding to the context name specified. |
java.util.Enumeration |
getEnumeration()
Returns an enumeration of the VacmContext entries |
boolean |
isExists(VacmContextEntry entry)
This method returns true if this particular entry is present in the table or false otherwise. |
void |
removeAllEntries()
Deletes all the VacmContext entries present in the list |
void |
removeEntry(byte[] name)
Deletes the entry corresponding to contextName from the list of VacmContextEntry objects. |
void |
removeEntry(VacmContextEntry entry)
Removes this contextEntry object from the list of VacmContextEntry objects. |
void |
serialize(java.io.ObjectOutputStream out)
Writes the Context entries to the ObjectOutputStream specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean addEntry(VacmContextEntry entry)
VacmContextEntry
objects.entry
- The VacmContextEntry object to be addedpublic boolean isExists(VacmContextEntry entry)
entry
- The entry whose presence is to be checked in the
table.public void removeAllEntries()
public java.util.Enumeration getEnumeration()
public VacmContextEntry getEntry(byte[] name)
name
- The context name for which the entry is to be retrivednull
if the
VacmContextEntry corresponding to the contextName is not presentjava.lang.NullPointerException
- if name is null.public void removeEntry(byte[] name)
name
- The contextName for which entry is to be removedpublic void removeEntry(VacmContextEntry entry)
entry
- The VacmContextEntry to be removedpublic void serialize(java.io.ObjectOutputStream out)
public void deSerialize(java.io.ObjectInputStream in)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |