org.jacorb.poa
Class EventMulticaster

java.lang.Object
  extended byorg.jacorb.poa.EventMulticaster
All Implemented Interfaces:
AOMListener, EventListener, POAListener, RequestQueueListener, RPPoolManagerListener

public class EventMulticaster
extends java.lang.Object
implements AOMListener, RequestQueueListener, RPPoolManagerListener, POAListener, EventListener

This class will manage an structure of a chain of poa event listeners and will dispatch events to those listeners.

Version:
1.01, 06/20/99, RT

Field Summary
protected  EventListener one
           
protected  EventListener two
           
 
Constructor Summary
protected EventMulticaster(EventListener _one, EventListener _two)
           
 
Method Summary
protected static EventListener add_(EventListener _one, EventListener _two)
           
protected static AOMListener add(AOMListener _one, AOMListener _two)
           
protected static POAListener add(POAListener _one, POAListener _two)
           
protected static RequestQueueListener add(RequestQueueListener _one, RequestQueueListener _two)
           
protected static RPPoolManagerListener add(RPPoolManagerListener _one, RPPoolManagerListener _two)
           
 void objectActivated(byte[] oid, Servant servant, int size)
           
 void objectDeactivated(byte[] oid, Servant servant, int size)
           
 void poaCreated(POA poa)
           
 void poaStateChanged(POA poa, int new_state)
           
 void processorAddedToPool(RequestProcessor processor, int pool_count, int pool_size)
           
 void processorRemovedFromPool(RequestProcessor processor, int pool_count, int pool_size)
           
 void referenceCreated(Object object)
           
protected static EventListener remove_(EventListener l, EventListener old)
           
protected static AOMListener remove(AOMListener l, AOMListener old)
           
protected  EventListener remove(EventListener l)
           
protected static POAListener remove(POAListener l, POAListener old)
           
protected static RequestQueueListener remove(RequestQueueListener l, RequestQueueListener old)
           
protected static RPPoolManagerListener remove(RPPoolManagerListener l, RPPoolManagerListener old)
           
 void requestAddedToQueue(ServerRequest request, int queue_size)
           
 void requestRemovedFromQueue(ServerRequest request, int queue_size)
           
 void servantEtherialized(byte[] oid, Servant servant)
           
 void servantIncarnated(byte[] oid, Servant servant)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

one

protected EventListener one

two

protected EventListener two
Constructor Detail

EventMulticaster

protected EventMulticaster(EventListener _one,
                           EventListener _two)
Method Detail

add

protected static AOMListener add(AOMListener _one,
                                 AOMListener _two)

add

protected static POAListener add(POAListener _one,
                                 POAListener _two)

add

protected static RequestQueueListener add(RequestQueueListener _one,
                                          RequestQueueListener _two)

add

protected static RPPoolManagerListener add(RPPoolManagerListener _one,
                                           RPPoolManagerListener _two)

add_

protected static EventListener add_(EventListener _one,
                                    EventListener _two)

objectActivated

public void objectActivated(byte[] oid,
                            Servant servant,
                            int size)
Specified by:
objectActivated in interface AOMListener

objectDeactivated

public void objectDeactivated(byte[] oid,
                              Servant servant,
                              int size)
Specified by:
objectDeactivated in interface AOMListener

poaCreated

public void poaCreated(POA poa)
Specified by:
poaCreated in interface POAListener

poaStateChanged

public void poaStateChanged(POA poa,
                            int new_state)
Specified by:
poaStateChanged in interface POAListener

processorAddedToPool

public void processorAddedToPool(RequestProcessor processor,
                                 int pool_count,
                                 int pool_size)
Specified by:
processorAddedToPool in interface RPPoolManagerListener

processorRemovedFromPool

public void processorRemovedFromPool(RequestProcessor processor,
                                     int pool_count,
                                     int pool_size)
Specified by:
processorRemovedFromPool in interface RPPoolManagerListener

referenceCreated

public void referenceCreated(Object object)
Specified by:
referenceCreated in interface POAListener

remove

protected static AOMListener remove(AOMListener l,
                                    AOMListener old)

remove

protected EventListener remove(EventListener l)

remove

protected static POAListener remove(POAListener l,
                                    POAListener old)

remove

protected static RequestQueueListener remove(RequestQueueListener l,
                                             RequestQueueListener old)

remove

protected static RPPoolManagerListener remove(RPPoolManagerListener l,
                                              RPPoolManagerListener old)

remove_

protected static EventListener remove_(EventListener l,
                                       EventListener old)

requestAddedToQueue

public void requestAddedToQueue(ServerRequest request,
                                int queue_size)
Specified by:
requestAddedToQueue in interface RequestQueueListener

requestRemovedFromQueue

public void requestRemovedFromQueue(ServerRequest request,
                                    int queue_size)
Specified by:
requestRemovedFromQueue in interface RequestQueueListener

servantEtherialized

public void servantEtherialized(byte[] oid,
                                Servant servant)
Specified by:
servantEtherialized in interface AOMListener

servantIncarnated

public void servantIncarnated(byte[] oid,
                              Servant servant)
Specified by:
servantIncarnated in interface AOMListener