com.adventnet.snmp.snmp2
Class SnmpNotifyFilterTable

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

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

This class maintains a list of filterProfiles used to determine whether particular management targets should receive particular notifications.

See Also:
Serialized Form

Method Summary
 boolean addEntry(SnmpNotifyFilterEntry entry)
          Adds the SnmpNotifyFilterEntry object to the list of SnmpNotifyFilterEntry objects maintained in this class.
 void deSerialize()
          DeSerializes the file "FilterEntry.ser" to get a list of SnmpNotifyFilterEntry objects.
 void deSerialize(java.io.ObjectInputStream in)
          DeSerializes the SnmpNotifyFilterEntry objects from the particular input Stream to the list of SnmpNotifyFilterEntry objects.
 SnmpNotifyFilterEntry getEntry(byte[] profileName, int[] subTree)
          Gets the SnmpNotifyFilterEntry associated with the specified key.
 SnmpNotifyFilterEntry getEntry(java.lang.Object key)
          Gets the SnmpNotifyFilterEntry associated with the specified key.
 java.util.Enumeration getEnumeration()
          Returns an enumeration of all the SnmpNotifyFilterEntry objects maintained in this class.
 java.util.Enumeration getMatchingFilterEntries(byte[] filterProfileName)
          Gets the SnmpNotifyFilterEntries corresponding to the given filterProfileName as an Enumeration.
 void removeAllEntries()
          Deletes all the SnmpNotifyFilterEntry objects maintained in this class.
 boolean removeEntry(byte[] profileName, int[] subTree)
          Deletes the SnmpNotifyFilterEntry corresponding to the index from the list of SnmpNotifyFilterEntry objects.
 boolean removeEntry(SnmpNotifyFilterEntry entry)
          Deletes this particular SnmpNotifyFilterEntry object from the list of SnmpNotifyFilterEntry objects.
 void serialize()
          Stores the list of SnmpNotifyFilterEntry objects in the serialized file "FilterEntry.ser"
 void serialize(java.io.ObjectOutputStream out)
          Serializes the list of SnmpNotifyFilterEntry 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 SnmpNotifyFilterEntry objects maintained in this class.
Returns:
The enumeration of all the SnmpNotifyFilterEntry objects maintained in this class.

removeAllEntries

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

addEntry

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

getEntry

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

getEntry

public SnmpNotifyFilterEntry getEntry(byte[] profileName,
                                      int[] subTree)
Gets the SnmpNotifyFilterEntry associated with the specified key.
Parameters:
profileName - The snmpNotifyFilterProfileName corresponding to which the SnmpNotifyFilterEntry is to be retrieved.
subTree - The snmpNotifyFilterSubTree corresponding to which the SnmpNotifyFilterEntry is to be retrieved.
Returns:
The SnmpNotifyFilterEntry corresponding to the specified key, null if no match is found.

getMatchingFilterEntries

public java.util.Enumeration getMatchingFilterEntries(byte[] filterProfileName)
Gets the SnmpNotifyFilterEntries corresponding to the given filterProfileName as an Enumeration.
Parameters:
filterProfileName - The SnmpNotifyFilterProfileName corresponding to which the SnmpNotifyFilterEntries are to be retrieved.
Returns:
An Enumeration of SnmpNotifyFilterEntries corresponding to the given filterProfileName. It will return an empty enumeration if no matching entry is found.

removeEntry

public boolean removeEntry(byte[] profileName,
                           int[] subTree)
Deletes the SnmpNotifyFilterEntry corresponding to the index from the list of SnmpNotifyFilterEntry objects.
Parameters:
profileName - The snmpNotifyFilterProfileName corresponding to which the SnmpNotifyFilterEntry is to be deleted.
subTree - The snmpNotifyFilterSubTree corresponding to which the SnmpNotifyFilterEntry is to be deleted.
Returns:
true, if the entry is deleted, otherwise false.

removeEntry

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

serialize

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

deSerialize

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

serialize

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

deSerialize

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


Copyright (c)AdventNet Inc., 1996-2004