org.norther.tammi.core.cache
Class DomainCacheNotification

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.cache.DomainCacheNotification
All Implemented Interfaces:
Serializable, MBeanReference

public class DomainCacheNotification
extends ReferableNotification

A notification of shared caches sent after creation and after removal of a domain.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
static String CACHE_CREATED
          The creation notification.
static String CACHE_MODIFIED
          The modification notification.
static String CACHE_REMOVED
          The removal notification.
 
Fields inherited from class org.norther.tammi.core.base.ReferableNotification
GENERIC
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
DomainCacheNotification(String type, MBeanReference src, long sequenceNumber, long timeStamp, String message, String domain, Map cache)
          Creates a notification with a time stamp and message.
 
Method Summary
 Map getCache()
          Gets the read-only cache of the domain.
 String getDomain()
          Gets the domain of the cache.
 
Methods inherited from class org.norther.tammi.core.base.ReferableNotification
get, getClassName, getMBeanServer, getObjectName, isRegistered
 
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

CACHE_CREATED

public static final String CACHE_CREATED
The creation notification.


CACHE_REMOVED

public static final String CACHE_REMOVED
The removal notification.


CACHE_MODIFIED

public static final String CACHE_MODIFIED
The modification notification.

Constructor Detail

DomainCacheNotification

public DomainCacheNotification(String type,
                               MBeanReference src,
                               long sequenceNumber,
                               long timeStamp,
                               String message,
                               String domain,
                               Map cache)
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.
domain - the cache domain.
cache - the domain cache.
Method Detail

getDomain

public String getDomain()
Gets the domain of the cache.

Returns:
the cache domain.

getCache

public Map getCache()
Gets the read-only cache of the domain.

Returns:
the domain cache.


Copyright © 2004 The Norther Organization. All rights reserved.