Skip navigation links


com.essbase.eas.framework.server.application
Class DefaultEventController

java.lang.Object
  extended by com.essbase.eas.framework.server.application.DefaultApplicationPart
      extended by com.essbase.eas.framework.server.application.DefaultEventController

All Implemented Interfaces:
ApplicationPart, EventController, EventDispatcherManager

public class DefaultEventController
extends DefaultApplicationPart
implements EventController, EventDispatcherManager
Version:
6.5.2, 10/01/02
Author:
Hank Cox, Painted Word

Field Summary
protected  EventDispatcher[] dispatcherPool
           
protected  java.util.HashMap dispatchers
           

 

Fields inherited from class com.essbase.eas.framework.server.application.DefaultApplicationPart
CHAIN_SEPARATOR, manager, parts, serviceContext, serviceManager, state, STATE_BEFORE_WORKERS_ASSIGNED, STATE_CONSTRUCTED, STATE_DESTROYED, STATE_INITIALIZED, STATE_MANAGED, STATE_NULL, STATE_WORKERS_ASSIGNED, STATE_WORKERS_INITIALIZED, storeService

 

Constructor Summary
DefaultEventController()
          Constructs a DefaultEventController object.

 

Method Summary
 void addDispatchInterest(java.lang.Class dispatchClass, EventDispatcher dispatcher)
          Implementation of the EventDispatcherManager.addDispatchInterest() method.
 void assignWorkers(ServiceContext context)
           
 java.lang.Class[] getRoles()
          Overrides the DefaultApplicationPart.getRoles() method.
 void handleEvent(ServerEvent event)
           
 void removeDispatchInterest(java.lang.Class dispatchClass)
          Implementation of the EventDispatcherManager.removeDispatchInterest() method.

 

Methods inherited from class com.essbase.eas.framework.server.application.DefaultApplicationPart
destroy, getManager, getManagerChain, getServiceContext, getServiceManager, getStoreService, init, initWorkers, requestPart, requestPartPool, setManager

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface com.essbase.eas.framework.server.defs.ApplicationPart
destroy, getManager, getServiceContext, getServiceManager, getStoreService, init, initWorkers, setManager

 

Field Detail

dispatcherPool

protected EventDispatcher[] dispatcherPool

dispatchers

protected java.util.HashMap dispatchers

Constructor Detail

DefaultEventController

public DefaultEventController()
Constructs a DefaultEventController object.

Method Detail

getRoles

public java.lang.Class[] getRoles()
Overrides the DefaultApplicationPart.getRoles() method. Returns an array of objects containing the class objects for the EventController interface and the EventDispatcherManager interface.
Specified by:
getRoles in interface ApplicationPart
Returns:
an array of class objects representing the roles played by this object.

assignWorkers

public void assignWorkers(ServiceContext context)
                   throws ApplicationException
Specified by:
assignWorkers in interface ApplicationPart
Throws:
ApplicationException

handleEvent

public void handleEvent(ServerEvent event)
                 throws ApplicationException
Specified by:
handleEvent in interface EventController
Throws:
ApplicationException

addDispatchInterest

public void addDispatchInterest(java.lang.Class dispatchClass,
                                EventDispatcher dispatcher)
                         throws ApplicationException
Implementation of the EventDispatcherManager.addDispatchInterest() method.
Specified by:
addDispatchInterest in interface EventDispatcherManager
Parameters:
dispatchClass - the class object for events that this object is interested in receiving.
dispatcher - the dispatcher to send these events to.
Throws:
ApplicationException

removeDispatchInterest

public void removeDispatchInterest(java.lang.Class dispatchClass)
                            throws ApplicationException
Implementation of the EventDispatcherManager.removeDispatchInterest() method.
Specified by:
removeDispatchInterest in interface EventDispatcherManager
Parameters:
dispatchClass - the class object for events that this object is no longer interested in receiving.
Throws:
ApplicationException

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.