com.adventnet.snmp.snmp2
Class SnmpTargetAddrExtTable

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.SnmpTargetAddrExtTable
All Implemented Interfaces:
java.io.Serializable

public class SnmpTargetAddrExtTable
extends java.lang.Object
implements java.io.Serializable

This class maintains a list of all SnmpTargetAddrExtEntry objects and provides methods to operate on the list.

See Also:
Serialized Form

Method Summary
 boolean addEntry(SnmpTargetAddrExtEntry entry)
          Adds the SnmpTargetAddrExtEntry object to the list of SnmpTargetAddrExtEntry objects maintained in this class.
 void deSerialize()
          DeSerializes the SnmpTargetAddrExtEntry objects from the file "TAddrExtTable.ser" to get a list of SnmpTargetAddrExtEntry objects.
 void deSerialize(java.io.ObjectInputStream in)
          DeSerializes the SnmpTargetAddrExtEntry objects from the particular input Stream to the list of SnmpTargetAddrExtEntry objects.
 SnmpTargetAddrExtEntry getEntry(byte[] addrName)
          Returns the SnmpTargetAddrExtEntry object corresponding to the particular targetAddrName from the list of SnmpTargetAddrExtEntry objects.
 java.util.Enumeration getEnumeration()
          Returns an enumeration of all the SnmpTargetAddrExtEntry objects maintaied in this class.
 void removeAllEntries()
          Deletes all the SnmpTargetAddrExtEntry objects maintained in this class.
 void removeEntry(byte[] addrName)
          Deletes the SnmpTargetAddrExtEntry corresponding to the addrName from the list of SnmpTargetAddrExtEntry objects.
 void removeEntry(SnmpTargetAddrExtEntry entry)
          Deletes this particlar SnmpTargetAddrExtEntry object from the list of SnmpTargetAddrExtEntry objects.
 void serialize()
          Stores the list of SnmpTargetAddrExtEntry objects in the serialized file "TAddrExtTable.ser"
 void serialize(java.io.ObjectOutputStream out)
          Serializes the list of SnmpTargetAddrExtEntry 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

getEnumeration

public java.util.Enumeration getEnumeration()
Returns an enumeration of all the SnmpTargetAddrExtEntry objects maintaied in this class.
Returns:
The enumeration of all the SnmpTargetAddrExtEntry objects maintained in this class.

addEntry

public boolean addEntry(SnmpTargetAddrExtEntry entry)
Adds the SnmpTargetAddrExtEntry object to the list of SnmpTargetAddrExtEntry objects maintained in this class. This entry is added only if there is entry in SnmpTargetAddrEntry with the same key.
Parameters:
entry - The SnmpTargetAddrExtEntry which needs to be added to the list of SnmpTargetAddrExtEntry objects.
Returns:
true if the SnmpTargetAddrExtEntry was successfully added to the list of SnmpTargetAddrExtEntry objects. False if the SnmpTargetAddrExtEntry object is already present in the list of SnmpTargetAddrExtEntry objects.

removeAllEntries

public void removeAllEntries()
Deletes all the SnmpTargetAddrExtEntry objects maintained in this class. Thus the list which maintains the list of SnmpTargetAddrExtEntry objects will be null.

removeEntry

public void removeEntry(byte[] addrName)
Deletes the SnmpTargetAddrExtEntry corresponding to the addrName from the list of SnmpTargetAddrExtEntry objects. This will be deleted only if the SnmpTargetAddrEntry corresponding to addrName is not present in the list of SnmpTargetAddrEntry objects.
Parameters:
addrName - The targetAddrName for which the SnmpTargetAddrExtEntry object is to be deleted.

removeEntry

public void removeEntry(SnmpTargetAddrExtEntry entry)
Deletes this particlar SnmpTargetAddrExtEntry object from the list of SnmpTargetAddrExtEntry objects. It will be deleted only if SnmpTargetAddrEntry with the same key is not present in the list of SnmpTargetAddrEntry objects.
Parameters:
entry - The SnmpTargetAddrExtEntry object that is to be deleted.

serialize

public void serialize()
Stores the list of SnmpTargetAddrExtEntry objects in the serialized file "TAddrExtTable.ser"

serialize

public void serialize(java.io.ObjectOutputStream out)
Serializes the list of SnmpTargetAddrExtEntry objects into particular output Stream specified.
Parameters:
out - The ObjectOutputStream for serialization

deSerialize

public void deSerialize()
DeSerializes the SnmpTargetAddrExtEntry objects from the file "TAddrExtTable.ser" to get a list of SnmpTargetAddrExtEntry objects.

deSerialize

public void deSerialize(java.io.ObjectInputStream in)
DeSerializes the SnmpTargetAddrExtEntry objects from the particular input Stream to the list of SnmpTargetAddrExtEntry objects.
Parameters:
in - The ObjectInputStream for deSerialization

getEntry

public SnmpTargetAddrExtEntry getEntry(byte[] addrName)
Returns the SnmpTargetAddrExtEntry object corresponding to the particular targetAddrName from the list of SnmpTargetAddrExtEntry objects.
Parameters:
addrName - The SnmpTargetAddrName for which the SnmpTargetAddrExtEntry object is to be retrived.
Returns:
The SnmpTargetAddrExtEntry object corresponding to the SnmpTargetAddrName from the list of SnmpTargetAddrExtEntry objects, null if no match is found.


Copyright (c)AdventNet Inc., 1996-2004