com.sun.management.snmp.agent
Class SnmpTableEntryNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by com.sun.management.snmp.agent.SnmpTableEntryNotification
All Implemented Interfaces:
Serializable

public class SnmpTableEntryNotification
extends Notification

Represents a notification emitted when an entry is added or deleted from an SNMP table.

The SnmpTableEntryNotification object contains the reference to the entry added or removed from the table.

The list of notifications fired by the SnmpMibTable is the following:

Since:
Java DMK 5.1
See Also:
Serialized Form

Field Summary
static String SNMP_ENTRY_ADDED
          Notification type denoting that a new entry has been added to the SNMP table.
static String SNMP_ENTRY_REMOVED
          Notification type denoting that an entry has been removed from the SNMP table.
 
Fields inherited from class javax.management.Notification
source
 
Method Summary
 Object getEntry()
          Gets the entry object.
 ObjectName getEntryName()
          Gets the ObjectName of the entry.
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SNMP_ENTRY_ADDED

public static final String SNMP_ENTRY_ADDED
Notification type denoting that a new entry has been added to the SNMP table.
The value of this notification type is jdmk.snmp.table.entry.added.


SNMP_ENTRY_REMOVED

public static final String SNMP_ENTRY_REMOVED
Notification type denoting that an entry has been removed from the SNMP table.
The value of this notification type is jmx.snmp.table.entry.removed.

Method Detail

getEntry

public Object getEntry()
Gets the entry object. May be null if the entry is registered in the MBeanServer, and the MIB is using the generic MetaData (see mibgen).

Returns:
The entry.

getEntryName

public ObjectName getEntryName()
Gets the ObjectName of the entry. May be null if the entry is not registered in the MBeanServer.

Returns:
The ObjectName of the entry.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.