kaos.domain.management
Interface DomainManagerEventListener

All Known Implementing Classes:
GridDomainManagerEventListener

public interface DomainManagerEventListener

Defines the callback method to be invoked by the Domain Manager on the DomainManagerEventListener when a domain event occurs.


Method Summary
 void initialize(DomainDirectoryService directory)
          If necessary, associates itself with the DomainDirectoryService.
 boolean listeningForEvent(java.util.Map event)
          Determines if this Listener is listening for the specified event.
 void receiveDomainEvent(java.util.Map event)
          Notifies the listener about a domain event.
 

Method Detail

receiveDomainEvent

void receiveDomainEvent(java.util.Map event)
Notifies the listener about a domain event.

This listener must have established a trust relationship with the Domain Manager in order to receive domain events.

Parameters:
event - A domain event communicated by the Domain Manager to this listener.

listeningForEvent

boolean listeningForEvent(java.util.Map event)
Determines if this Listener is listening for the specified event.

Parameters:
event - A domain event to be sent to the appropriate listeners.
Returns:
true if the listener is listening for the event; otherwise return false.

initialize

void initialize(DomainDirectoryService directory)
If necessary, associates itself with the DomainDirectoryService.

Parameters:
directory - DomainDirectoryService this DomainManagerEventListener associates itself with.