org.jnp.server
Class ExecutorEventMgr

java.lang.Object
  extended by org.jnp.server.ExecutorEventMgr
All Implemented Interfaces:
EventMgr

public class ExecutorEventMgr
extends Object
implements EventMgr

An EventMgr implementation that uses an Executor to dispatch the events in the background.

Version:
$Revision:$
Author:
Scott.Stark@jboss.org

Constructor Summary
ExecutorEventMgr()
           
 
Method Summary
 void fireEvent(Name fullName, Binding oldb, Binding newb, int type, String changeInfo, EventListeners listeners, Set<Integer> scopes)
          Dispatch an event to the listeners.
 Executor getExecutor()
           
 void setExecutor(Executor executor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorEventMgr

public ExecutorEventMgr()
Method Detail

getExecutor

public Executor getExecutor()

setExecutor

public void setExecutor(Executor executor)

fireEvent

public void fireEvent(Name fullName,
                      Binding oldb,
                      Binding newb,
                      int type,
                      String changeInfo,
                      EventListeners listeners,
                      Set<Integer> scopes)
Description copied from interface: EventMgr
Dispatch an event to the listeners.

Specified by:
fireEvent in interface EventMgr
Parameters:
fullName - - the full path of name of the event location
oldb - - the possibly old binding of the event
newb - - the possibly new binding of the event
type - - one of NamingEvent.OBJECT_ADDED, NamingEvent.OBJECT_CHANGED, NamingEvent.OBJECT_REMOVED events.
changeInfo - - the provider specific change information. The current impl passes in the name of the operation that generated the event.
listeners - - the list of NamingListener info for the EventContext associated with the event.
scopes - - a set of the EventContext scopes that apply.


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.