org.norther.tammi.core.relation
Class ActorNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by org.norther.tammi.core.base.ReferableNotification
              extended by org.norther.tammi.core.relation.ActorNotification
All Implemented Interfaces:
Serializable, MBeanReference

public class ActorNotification
extends ReferableNotification

An extended notification of RelationMBeans sent after changes within actors.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
static String ACTOR_GENERIC
          The actor unknown notification.
static String ACTOR_MODIFIED
          The actor modified notification.
static String ACTOR_REGISTERED
          The actor registration notification.
static String ACTOR_UNREGISTERED
          The unregistration notification.
 
Fields inherited from class org.norther.tammi.core.base.ReferableNotification
GENERIC
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
ActorNotification(String type, MBeanReference src, long sequenceNumber, long timeStamp, String theRoleName, Notification notif)
          Creates a notification with a time stamp.
ActorNotification(String type, MBeanReference src, long sequenceNumber, String theRoleName, Notification notif)
          Creates a notification.
 
Method Summary
 Object getActor()
          Gets the modified actor.
 Notification getActorNotification()
          Gets the original actor notification.
 String getMessage()
          Gets the message.
 String getRoleName()
          Gets the name of the modified role.
 Object getUserData()
          Gets the user data.
 void setUserData(Object data)
          Sets the user data.
 
Methods inherited from class org.norther.tammi.core.base.ReferableNotification
get, getClassName, getMBeanServer, getObjectName, isRegistered
 
Methods inherited from class javax.management.Notification
getSequenceNumber, getTimeStamp, getType, setSequenceNumber, setSource, setTimeStamp, 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

ACTOR_REGISTERED

public static final String ACTOR_REGISTERED
The actor registration notification.


ACTOR_UNREGISTERED

public static final String ACTOR_UNREGISTERED
The unregistration notification.


ACTOR_MODIFIED

public static final String ACTOR_MODIFIED
The actor modified notification.


ACTOR_GENERIC

public static final String ACTOR_GENERIC
The actor unknown notification.

Constructor Detail

ActorNotification

public ActorNotification(String type,
                         MBeanReference src,
                         long sequenceNumber,
                         String theRoleName,
                         Notification notif)
Creates a notification.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
theRoleName - the name of the role.
notif - the original notification from the actor.

ActorNotification

public ActorNotification(String type,
                         MBeanReference src,
                         long sequenceNumber,
                         long timeStamp,
                         String theRoleName,
                         Notification notif)
Creates a notification with a time stamp.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
timeStamp - the time stamp.
theRoleName - the name of the role.
notif - the original notification from the actor.
Method Detail

getMessage

public String getMessage()
Gets the message.

Overrides:
getMessage in class Notification
Returns:
the message.

getUserData

public Object getUserData()
Gets the user data.

Overrides:
getUserData in class Notification
Returns:
the user data.

setUserData

public void setUserData(Object data)
Sets the user data.

Overrides:
setUserData in class Notification
Parameters:
data - the user data.

getRoleName

public String getRoleName()
Gets the name of the modified role.

Returns:
the role name.

getActor

public Object getActor()
Gets the modified actor.

Returns:
the actor.

getActorNotification

public Notification getActorNotification()
Gets the original actor notification.

Returns:
the actor notification.


Copyright © 2004 The Norther Organization. All rights reserved.