com.adventnet.snmp.snmp2
Class SnmpNotifyFilterProfileTable

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

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

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

See Also:
Serialized Form

Constructor Summary
SnmpNotifyFilterProfileTable(com.adventnet.snmp.snmp2.SnmpTargetParamsTable tAddrParams)
          Constructs a new SnmpNotifyFilterProfileTable with the specified SnmpTargetParamsTable.
 
Method Summary
 boolean addEntry(SnmpNotifyFilterProfileEntry entry)
          Adds the SnmpNotifyFilterProfileEntry object to the list of SnmpNotifyFilterProfileEntry objects maintained in this class.
 void deSerialize()
          DeSerializes the file "FilterProfileEntry.ser" to get a list of SnmpNotifyFilterProfileEntry objects.
 void deSerialize(java.io.ObjectInputStream in)
          DeSerializes the SnmpNotifyFilterProfileEntry objects from the particular input Stream to the list of SnmpNotifyFilterProfileEntry objects.
 SnmpNotifyFilterProfileEntry getEntry(byte[] index)
          Gets the SnmpNotifyFilterProfileEntry associated with the specified key.
 SnmpNotifyFilterProfileEntry getEntry(java.lang.Object key)
          Gets the SnmpNotifyFilterProfileEntry associated with the specified key.
 java.util.Enumeration getEnumeration()
          Returns an enumeration of all the SnmpNotifyFilterProfileEntry objects maintained in this class.
 SnmpNotifyFilterProfileEntry getMatchingEntry(byte[] paramsName)
          Gets the SnmpNotifyFilterProfileEntries corresponding to the paramsName.
 void removeAllEntries()
          Deletes all the SnmpNotifyFilterProfileEntry objects maintained in this class.
 boolean removeEntry(byte[] index)
          Deletes the SnmpNotifyFilterProfileEntry corresponding to the index from the list of SnmpNotifyFilterProfileEntry objects.
 boolean removeEntry(SnmpNotifyFilterProfileEntry entry)
          Deletes this particlar SnmpNotifyFilterProfileEntry object from the list of SnmpNotifyFilterProfileEntry objects.
 void serialize()
          Stores the list of SnmpNotifyFilterProfileEntry objects in the serialized file "FilterProfileEntry.ser".
 void serialize(java.io.ObjectOutputStream out)
          Serializes the list of SnmpNotifyFilterProfileEntry objects into particular output Stream specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpNotifyFilterProfileTable

public SnmpNotifyFilterProfileTable(com.adventnet.snmp.snmp2.SnmpTargetParamsTable tAddrParams)
Constructs a new SnmpNotifyFilterProfileTable with the specified SnmpTargetParamsTable.
Parameters:
tAddrParams - The SnmpTargetParamsTable to be used for creating a new SnmpNotifyFilterProfileTable.
Method Detail

getEnumeration

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

removeAllEntries

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

addEntry

public boolean addEntry(SnmpNotifyFilterProfileEntry entry)
Adds the SnmpNotifyFilterProfileEntry object to the list of SnmpNotifyFilterProfileEntry objects maintained in this class.
Parameters:
entry - The SnmpNotifyFilterProfileEntry which needs to be added to the list of SnmpNotifyFilterProfileEntry objects.
Returns:
true if the SnmpNotifyFilterProfileEntry was successfully added to the list of SnmpNotifyFilterProfileEntry objects. False if the SnmpNotifyFilterProfileEntry object is already present in the list of SnmpNotifyFilterProfileEntry objects.
Throws:
java.lang.NullPointerException - is the entry is null.

getEntry

public SnmpNotifyFilterProfileEntry getEntry(java.lang.Object key)
Gets the SnmpNotifyFilterProfileEntry associated with the specified key.
Parameters:
key - The key corresponding to which the SnmpNotifyFilterProfileEntry is to be retrieved.
Returns:
The SnmpNotifyFilterProfileEntry corresponding to the specified key, null if no match is found.
Throws:
java.lang.NullPointerException - if the key is null.

getEntry

public SnmpNotifyFilterProfileEntry getEntry(byte[] index)
Gets the SnmpNotifyFilterProfileEntry associated with the specified key.
Parameters:
index - The index corresponding to which the SnmpNotifyFilterProfileEntry is to be retrieved.
Returns:
The SnmpNotifyFilterProfileEntry corresponding to the specified key, null if no match is found.

removeEntry

public boolean removeEntry(byte[] index)
Deletes the SnmpNotifyFilterProfileEntry corresponding to the index from the list of SnmpNotifyFilterProfileEntry objects.
Parameters:
index - The index for which the SnmpNotifyFilterProfileEntry object is to be deleted.
Returns:
true if the entry corresponding to the index is successfully deleted, otherwise false.
Throws:
java.lang.NullPointerException - if the index is null.

removeEntry

public boolean removeEntry(SnmpNotifyFilterProfileEntry entry)
Deletes this particlar SnmpNotifyFilterProfileEntry object from the list of SnmpNotifyFilterProfileEntry objects.
Parameters:
entry - The SnmpNotifyFilterProfileEntry object that is to be deleted.
Returns:
true if the entry is successfully deleted, otherwise false.

serialize

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

deSerialize

public void deSerialize()
DeSerializes the file "FilterProfileEntry.ser" to get a list of SnmpNotifyFilterProfileEntry objects.

serialize

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

deSerialize

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

getMatchingEntry

public SnmpNotifyFilterProfileEntry getMatchingEntry(byte[] paramsName)
Gets the SnmpNotifyFilterProfileEntries corresponding to the paramsName.
Parameters:
paramsName - The SnmpTargetParamsName corresponding to which the entry is to be retrieved.
Returns:
SnmpNotifyFilterProfileEntry matching the paramsName, null if no match is found.
Throws:
java.lang.NullPointerException - if the paramsName is null.


Copyright (c)AdventNet Inc., 1996-2004