org.norther.tammi.core.base
Class ReferableNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by org.norther.tammi.core.base.ReferableNotification
All Implemented Interfaces:
Serializable, MBeanReference
Direct Known Subclasses:
ActorNotification, AdaptableNotification, DomainCacheNotification, RegistrationNotification, RelationNotification, RoleNotification

public class ReferableNotification
extends Notification
implements MBeanReference

A referable notification.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
static String GENERIC
          The generic notification.
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
ReferableNotification(String type, MBeanReference src, long sequenceNumber)
          Creates a notification.
ReferableNotification(String type, MBeanReference src, long sequenceNumber, long timeStamp)
          Creates a notification with a time stamp.
ReferableNotification(String type, MBeanReference src, long sequenceNumber, long timeStamp, String message)
          Creates a notification with a time stamp and message.
ReferableNotification(String type, MBeanReference src, long sequenceNumber, String message)
          Creates a notification with a message.
 
Method Summary
 Object get()
          Gets the referent.
 String getClassName()
          Gets the class name.
 MBeanServer getMBeanServer()
          Gets the MBean server.
 ObjectName getObjectName()
          Gets the object name.
 boolean isRegistered()
          Checks whether registered, already unregistered or unregistration is just going on.
 
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

GENERIC

public static final String GENERIC
The generic notification.

Constructor Detail

ReferableNotification

public ReferableNotification(String type,
                             MBeanReference src,
                             long sequenceNumber)
Creates a notification.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.

ReferableNotification

public ReferableNotification(String type,
                             MBeanReference src,
                             long sequenceNumber,
                             String message)
Creates a notification with a message.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
message - the notification message.

ReferableNotification

public ReferableNotification(String type,
                             MBeanReference src,
                             long sequenceNumber,
                             long timeStamp)
Creates a notification with a time stamp.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
timeStamp - the time stamp.

ReferableNotification

public ReferableNotification(String type,
                             MBeanReference src,
                             long sequenceNumber,
                             long timeStamp,
                             String message)
Creates a notification with a time stamp and message.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
timeStamp - the time stamp.
message - the notification message.
Method Detail

get

public Object get()
Description copied from interface: MBeanReference
Gets the referent.

Specified by:
get in interface MBeanReference
Returns:
the referent or null if not available.

getObjectName

public ObjectName getObjectName()
Description copied from interface: MBeanReference
Gets the object name.

Specified by:
getObjectName in interface MBeanReference
Returns:
the object name or null if not available.

getClassName

public String getClassName()
Description copied from interface: MBeanReference
Gets the class name.

Specified by:
getClassName in interface MBeanReference
Returns:
the class name or null if not available.

isRegistered

public boolean isRegistered()
Description copied from interface: MBeanReference
Checks whether registered, already unregistered or unregistration is just going on.

Specified by:
isRegistered in interface MBeanReference
Returns:
true if still registered, otherwise false.

getMBeanServer

public MBeanServer getMBeanServer()
Description copied from interface: MBeanReference
Gets the MBean server.

Specified by:
getMBeanServer in interface MBeanReference
Returns:
the MBean server or null if never registered.


Copyright © 2004 The Norther Organization. All rights reserved.