org.tubo.resource.flow
Class BaseFlowExecutorImpl

java.lang.Object
  extended by org.tubo.resource.flow.BaseFlowExecutorImpl
All Implemented Interfaces:
ConsumerListener, FlowExecutor

public class BaseFlowExecutorImpl
extends java.lang.Object
implements FlowExecutor, ConsumerListener

Created: Oct 23, 2006, 12:21:15 AM
Last Modification Date: $Date: 2006-10-26 03:10:31 -0300 (Thu, 26 Oct 2006) $

Version:
$Revision: 49 $
Author:
maldito_orco (maldito_orco@users.sourceforge.net)

Field Summary
static java.lang.String RCS_ID
           
 
Constructor Summary
BaseFlowExecutorImpl()
           
 
Method Summary
 void execute(FlowContext flowContext)
          Execute the flow associated with this consumer
 java.util.Map getConsumerFlowMapping()
           
 ResourceManager getResourceManager()
           
 java.lang.String mapConsumerIdToFlow(java.lang.String consumerId)
          TODO: Exception?? NullPointer??
 void onOriginFlowEvent(FlowContext flowContext)
          Consumer listener event handler
 void setConsumerFlowMapping(java.util.Map consumerFlowMapping)
           
 void setResourceManager(ResourceManager resourceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values
Constructor Detail

BaseFlowExecutorImpl

public BaseFlowExecutorImpl()
Method Detail

getResourceManager

public ResourceManager getResourceManager()
Specified by:
getResourceManager in interface FlowExecutor

setResourceManager

public void setResourceManager(ResourceManager resourceManager)
                        throws TuboException
Specified by:
setResourceManager in interface FlowExecutor
Throws:
TuboException

getConsumerFlowMapping

public java.util.Map getConsumerFlowMapping()

setConsumerFlowMapping

public void setConsumerFlowMapping(java.util.Map consumerFlowMapping)

mapConsumerIdToFlow

public java.lang.String mapConsumerIdToFlow(java.lang.String consumerId)
TODO: Exception?? NullPointer??

Parameters:
consumerId -
Returns:

execute

public void execute(FlowContext flowContext)
             throws TuboException
Execute the flow associated with this consumer

Specified by:
execute in interface FlowExecutor
Parameters:
flowContext -
Throws:
TuboException

onOriginFlowEvent

public void onOriginFlowEvent(FlowContext flowContext)
Consumer listener event handler

Specified by:
onOriginFlowEvent in interface ConsumerListener
Parameters:
flowContext -


Copyright © 2004-2007 Tubo. All Rights Reserved.