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