|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.snmp.snmp2.SnmpProxyTable
This class maintains a list of all SnmpProxyEntry objects and provides methods to operate on the list. Methods are provided to add, retrive and remove SnmpProxyEnrty objects. The API user need not instantiate this class as it is instantiated from the SnmpAPI constructor. The SnmpAPI provides methods to access the SnmpProxyTable instance. Once a new SnmpProxyEntry object is created, it has to be added to the the SnmpProxyTable using the add method provided.
SnmpProxyEntry,
SnmpAPI, Serialized Form| Field Summary | |
(package private) java.util.Vector |
proxyList
|
| Constructor Summary | |
(package private) |
SnmpProxyTable()
|
| Method Summary | |
boolean |
addEntry(SnmpProxyEntry proxyEntry)
Adds the SnmpProxyEntry object to the list of SnmpProxyEntry objects maintained in this class. |
void |
deSerialize()
DeSerializes the SnmpProxyEntry objects from the file "ProxyTable.ser" to get a list of SnmpProxyEntry objects. |
void |
deSerialize(java.io.ObjectInputStream in)
DeSerializes the SnmpProxyEntry objects from the particular input Stream to the list of SnmpProxyEntry objects. |
SnmpProxyEntry |
getEntry(byte[] proxyName)
Returns the SnmpProxyEntry object corresponding to the particular snmpProxyName from the list of SnmpProxyEntry objects. |
java.util.Enumeration |
getEnumeration()
Returns an enumeration of all the SnmpProxyEntry objects maintaied in this class. |
void |
removeAllEntries()
Deletes all the SnmpProxyEntry objects maintained in this class. |
void |
removeEntry(byte[] proxyName)
Deletes the SnmpProxyEntry corresponding to the SnmpProxyName from the list of SnmpProxyEntry objects. |
void |
removeEntry(SnmpProxyEntry entry)
Deletes this particlar SnmpProxyEntry object from the list of SnmpProxyEntry objects. |
void |
serialize()
Stores the list of SnmpProxyTable objects in the serialized file "ProxyEntry.ser" |
void |
serialize(java.io.ObjectOutputStream out)
Serializes the list of SnmpProxyEntry objects into particular output Stream specified. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.util.Vector proxyList
| Constructor Detail |
SnmpProxyTable()
| Method Detail |
public java.util.Enumeration getEnumeration()
public void removeAllEntries()
public boolean addEntry(SnmpProxyEntry proxyEntry)
entry - The SnmpProxyEntry which needs to be added to
the list of SnmpProxyEntry objects.public SnmpProxyEntry getEntry(byte[] proxyName)
proxyName - The SnmpProxyName for which the
SnmpProxyEntry object is to be retrived.public void removeEntry(byte[] proxyName)
proxyName - The snmpProxyName for which the
SnmpProxyEntry object is to be deleted.public void removeEntry(SnmpProxyEntry entry)
entry - The SnmpProxyEntry object that is to be deleted.public void serialize()
public void serialize(java.io.ObjectOutputStream out)
out - The ObjectOutputStream for serializationpublic void deSerialize()
public 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 | ||||||||