net.dpml.transit.model
Class CacheEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.dpml.transit.model.CacheEvent
All Implemented Interfaces:
Serializable

public abstract class CacheEvent
extends EventObject

An abstract event related to the addition and removal of hosts to and from the cache model.

Version:
1.0.1
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CacheEvent(CacheModel source, HostModel host)
          Construction of a new cache change event.
 
Method Summary
 CacheModel getCacheModel()
          Return the cache model that initiating the event.
 HostModel getHostModel()
          Return the host model that was added or removed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheEvent

public CacheEvent(CacheModel source,
                  HostModel host)
Construction of a new cache change event.

Parameters:
source - the cache model initiating the event
host - the host model added or removed from the cache
Method Detail

getCacheModel

public CacheModel getCacheModel()
Return the cache model that initiating the event.

Returns:
the cache model

getHostModel

public HostModel getHostModel()
Return the host model that was added or removed.

Returns:
the host model