|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.essbase.eas.framework.server.application.DefaultApplicationPart
com.essbase.eas.framework.server.application.AbstractCommandListener
| Field Summary | |
protected java.util.HashMap |
aliasMap
|
protected java.util.HashMap |
methodMap
|
static java.lang.String |
THERESULT
|
| 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 | |
AbstractCommandListener()
Constructs an AbstractCommandListener object. |
|
| Method Summary | |
protected void |
addMethodAlias(com.essbase.eas.framework.defs.command.CommandDescriptor command)
adds a mapping to the method map for a command that has been discovered via introspection. |
protected void |
addMethodAlias(java.lang.String theAlias,
java.lang.String theMethodName)
|
void |
assignWorkers(ServiceContext context)
|
protected void |
buildAliasMap(StoreService store,
ServiceContext context)
Deprecated. as of 6.5.3 |
protected void |
buildAliasMapEx(StoreService store,
ServiceContext context)
|
protected void |
buildMethodMap()
|
protected java.lang.Object |
convertStringValueToArgument(com.essbase.eas.framework.defs.command.CommandArgument argument,
java.lang.String value)
uses a CommandArgument object and a String object
to create a value compatible with the requirements. |
protected java.lang.Object[] |
getArgumentsForCommand(CommandEvent event)
returns an array of arguments for the requested method. |
com.essbase.eas.framework.defs.command.CommandDescriptor[] |
getCommands()
Implementation of the CommandListener.getCommands() method. |
protected java.lang.reflect.Method |
getMethod(java.lang.String name)
|
protected java.lang.reflect.Method |
getMethodForAlias(java.lang.String theAlias)
|
java.lang.Class[] |
getRoles()
|
protected java.lang.Object |
getSessionObject(ServiceContext theContext,
java.lang.Object key)
|
void |
handleEvent(CommandEvent command)
|
void |
handleEventException(CommandEvent commandEvent,
java.lang.Throwable ex)
implementation of the CommandListener.handleEventException() method. |
void |
handleEventPost(CommandEvent commandEvent,
java.lang.Object result)
implementation of the CommandListener.handleEventPost() method. |
boolean |
handleEventPrep(CommandEvent commandEvent)
implementation of the CommandListener.handleEventPrep() method. |
java.lang.Object |
init(ServiceContext context)
Initializes and stores mandatory and optimizing references. |
protected boolean |
isRequestFromSameServer(CommandEvent theEvent)
|
protected java.lang.Object |
removeSessionObject(ServiceContext theContext,
java.lang.Object key)
|
protected void |
setServiceResult(ServiceContext theContext,
java.lang.Object value)
|
protected void |
setSessionObject(ServiceContext theContext,
java.lang.Object key,
java.lang.Object value)
|
| 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 |
public static final java.lang.String THERESULT
protected java.util.HashMap methodMap
protected java.util.HashMap aliasMap
| Constructor Detail |
public AbstractCommandListener()
AbstractCommandListener object.
| Method Detail |
public java.lang.Class[] getRoles()
getRoles in interface ApplicationPart
public void assignWorkers(ServiceContext context)
throws ApplicationException
assignWorkers in interface ApplicationPartApplicationException
public java.lang.Object init(ServiceContext context)
throws ApplicationException
DefaultApplicationPart
init in interface ApplicationPartinit in class DefaultApplicationPartcontext - - the ServiceContext object for this context
ApplicationExceptionprotected java.lang.reflect.Method getMethod(java.lang.String name)
protected void buildMethodMap()
protected void buildAliasMap(StoreService store,
ServiceContext context)
throws ApplicationException
ApplicationException
protected void buildAliasMapEx(StoreService store,
ServiceContext context)
throws ApplicationException
ApplicationException
protected void addMethodAlias(java.lang.String theAlias,
java.lang.String theMethodName)
throws ApplicationException
ApplicationException
protected void addMethodAlias(com.essbase.eas.framework.defs.command.CommandDescriptor command)
throws ApplicationException
ApplicationException
protected java.lang.Object convertStringValueToArgument(com.essbase.eas.framework.defs.command.CommandArgument argument,
java.lang.String value)
CommandArgument object and a String object
to create a value compatible with the requirements.
protected java.lang.Object[] getArgumentsForCommand(CommandEvent event)
protected java.lang.reflect.Method getMethodForAlias(java.lang.String theAlias)
public final void handleEvent(CommandEvent command)
throws ApplicationException
handleEvent in interface CommandListenerApplicationException
public boolean handleEventPrep(CommandEvent commandEvent)
throws ApplicationException
CommandListener.handleEventPrep() method.
Inheriting classes should override this method if they need to perform
any special processing before the method invocation occurs.
handleEventPrep in interface CommandListenercommandEvent - the command event that we are processing.
ApplicationException
public void handleEventPost(CommandEvent commandEvent,
java.lang.Object result)
throws ApplicationException
CommandListener.handleEventPost() method.
Inheriting classes should override this method if they need to perform some
post invocation work on the results of the command.
handleEventPost in interface CommandListenercommandEvent - the command event that we are processing.
ApplicationException
public void handleEventException(CommandEvent commandEvent,
java.lang.Throwable ex)
throws ApplicationException
CommandListener.handleEventException() method.
Inheriting classes should override this if they need to do something special
when an exception is thrown during the method invocation.
handleEventException in interface CommandListenerApplicationExceptionpublic com.essbase.eas.framework.defs.command.CommandDescriptor[] getCommands()
CommandListener.getCommands() method.
This is an empty implementation and should be overridden by any derived
classes that use the new introspection method of discovering commands.
getCommands in interface CommandListenerCommandDescriptor objects.protected boolean isRequestFromSameServer(CommandEvent theEvent)
protected void setServiceResult(ServiceContext theContext,
java.lang.Object value)
protected void setSessionObject(ServiceContext theContext,
java.lang.Object key,
java.lang.Object value)
protected java.lang.Object getSessionObject(ServiceContext theContext,
java.lang.Object key)
protected java.lang.Object removeSessionObject(ServiceContext theContext,
java.lang.Object key)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||