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