Skip navigation links


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

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

All Implemented Interfaces:
ApplicationPart, CommandFactoryManager, WorkListener

public class EventGeneratorWorkListener
extends AbstractWorkListener
implements CommandFactoryManager
Since:
6.5.2
Version:
6.5.2, 10/01/02
Author:
Hank Cox, Painted Word

Field Summary
static java.lang.String COMMAND_STORE
           
protected  CommandFactory commandFactory
           
static java.lang.String OPERATION
           
static java.lang.String OPERATION_PERIOD
           
static int OPERATION_PERIOD_LENGTH
           
static java.lang.String OPERATION_UNDERSCORE
           
static int OPERATION_UNDERSCORE_LENGTH
           
static java.lang.String PERIOD
           

 

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
EventGeneratorWorkListener()
          Constructs a DefaultGeneratorWorkListener

 

Method Summary
 void assignWorkers(ServiceContext context)
          Implementation of the ApplicationPart.assignWorkers() method.
protected  java.lang.String getCommandName(java.util.Map<java.lang.String,java.lang.String[]> h)
           
 java.lang.Class[] getRoles()
          Implementation of the ApplicationPart.getRoles() method.
 void handleEvent(WorkEvent event)
          Implementation of the WorkListener.handleEvent() method.
protected  java.util.Map<java.lang.String,java.lang.String[]> parseHttpRequest(WorkEvent event)
          Parses the http request embedded in a WorkEvent object for the command operation.

 

Methods inherited from class com.essbase.eas.framework.server.application.AbstractWorkListener
getWorkflowPosition

 

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

commandFactory

protected CommandFactory commandFactory

COMMAND_STORE

public static final java.lang.String COMMAND_STORE

OPERATION

public static final java.lang.String OPERATION

OPERATION_UNDERSCORE

public static final java.lang.String OPERATION_UNDERSCORE

OPERATION_UNDERSCORE_LENGTH

public static final int OPERATION_UNDERSCORE_LENGTH

OPERATION_PERIOD

public static final java.lang.String OPERATION_PERIOD

OPERATION_PERIOD_LENGTH

public static final int OPERATION_PERIOD_LENGTH

PERIOD

public static final java.lang.String PERIOD

Constructor Detail

EventGeneratorWorkListener

public EventGeneratorWorkListener()
Constructs a DefaultGeneratorWorkListener

Method Detail

getRoles

public java.lang.Class[] getRoles()
Implementation of the ApplicationPart.getRoles() method.
Specified by:
getRoles in interface ApplicationPart
Returns:
the class objects for the WorkListener class and the CommandFactoryManager class.

assignWorkers

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

handleEvent

public void handleEvent(WorkEvent event)
                 throws ApplicationException
Implementation of the WorkListener.handleEvent() method.
Specified by:
handleEvent in interface WorkListener
Parameters:
workEvent -
Throws:
PFAppException
ApplicationException

parseHttpRequest

protected java.util.Map<java.lang.String,java.lang.String[]> parseHttpRequest(WorkEvent event)
                                                                       throws ApplicationException
Parses the http request embedded in a WorkEvent object for the command operation.

Note: the parsing does not detect duplicate ops, for example, so the last one parsed wins.

Parameters:
event - the work event to pull the parameters from
Returns:
a HashMap object containing the parameters for the command.
Throws:
ApplicationException

getCommandName

protected java.lang.String getCommandName(java.util.Map<java.lang.String,java.lang.String[]> h)
Parameters:
h - a HashMap object containing the ...
Returns:
a string containing the "command name"

Skip navigation links


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