Skip navigation links


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

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

All Implemented Interfaces:
ApplicationPart, CommandListenerManager, EventDispatcher

public class DefaultCommandDispatcher
extends DefaultApplicationPart
implements EventDispatcher, CommandListenerManager
Since:
6.5.3
Version:
6.5.3
Author:
Hank Cox, Painted Word

Field Summary
protected  java.util.HashMap aliasInterest
           
protected  CommandListener[] listenerPool
           

 

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
DefaultCommandDispatcher()
          Constructs a DefaultCommandDispatcher object.

 

Method Summary
 void addAliasInterest(java.lang.String alias, CommandListener listener)
          Implementation of the CommandListenerManager.addAliasInterest() method.
 void assignWorkers(ServiceContext context)
          Implementation of the DefaultApplicationPart.assignWorkers() method.
 void dispatchEvent(ServerEvent event)
          Implementation of the EventDispatcher.dispatchEvent() method.
 java.lang.Class[] getRoles()
          Overrides the DefaultApplicationPart.getRoles() method and returns the roles that the DefaultCommandDispatcher performs.
 java.lang.Object init(ServiceContext context)
          Initializes and stores mandatory and optimizing references.
 void removeAliasInterest(java.lang.String alias)
          Implementation of the CommandListenerManager.removeAliasInterest() method.

 

Methods inherited from class com.essbase.eas.framework.server.application.DefaultApplicationPart
destroy, getManager, getManagerChain, getServiceContext, getServiceManager, getStoreService, 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, initWorkers, setManager

 

Field Detail

listenerPool

protected CommandListener[] listenerPool

aliasInterest

protected java.util.HashMap aliasInterest

Constructor Detail

DefaultCommandDispatcher

public DefaultCommandDispatcher()
Constructs a DefaultCommandDispatcher object. This is the constructor that will be called by the framework during initialization.

Method Detail

getRoles

public java.lang.Class[] getRoles()
Overrides the DefaultApplicationPart.getRoles() method and returns the roles that the DefaultCommandDispatcher performs.
Specified by:
getRoles in interface ApplicationPart
Returns:
an array of class objects representing the EventDispatcher and CommandListenerManager classes.

assignWorkers

public void assignWorkers(ServiceContext context)
                   throws ApplicationException
Implementation of the DefaultApplicationPart.assignWorkers() method.
Specified by:
assignWorkers in interface ApplicationPart
Parameters:
context - the service context to assign worker objects to
Throws:
ApplicationException

init

public java.lang.Object init(ServiceContext context)
                      throws ApplicationException
Description copied from class: DefaultApplicationPart
Initializes and stores mandatory and optimizing references.
Specified by:
init in interface ApplicationPart
Overrides:
init in class DefaultApplicationPart
Parameters:
context -
Returns:
Throws:
ApplicationException

dispatchEvent

public void dispatchEvent(ServerEvent event)
                   throws ApplicationException
Implementation of the EventDispatcher.dispatchEvent() method.
Specified by:
dispatchEvent in interface EventDispatcher
Parameters:
event - the event to dispatch.
Throws:
ApplicationException

addAliasInterest

public void addAliasInterest(java.lang.String alias,
                             CommandListener listener)
                      throws ApplicationException
Implementation of the CommandListenerManager.addAliasInterest() method.
Specified by:
addAliasInterest in interface CommandListenerManager
Parameters:
alias -
listener -
Throws:
ApplicationException

removeAliasInterest

public void removeAliasInterest(java.lang.String alias)
                         throws ApplicationException
Implementation of the CommandListenerManager.removeAliasInterest() method.
Specified by:
removeAliasInterest in interface CommandListenerManager
Parameters:
alias -
Throws:
ApplicationException

Skip navigation links


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