SMILA 1.0 API documentation

org.eclipse.smila.processing.bpel.internal
Class RequestTableImpl

java.lang.Object
  extended by org.eclipse.smila.processing.bpel.internal.RequestTableImpl
All Implemented Interfaces:
RequestTable

public class RequestTableImpl
extends java.lang.Object
implements RequestTable

associates request IDs to blackboards and exceptions. provides MessageHelper.


Constructor Summary
RequestTableImpl()
           
 
Method Summary
protected  void activate()
           
 void cleanupRequest(java.lang.String requestId)
          release blackboard and caught exception.
 Blackboard getBlackboard(java.lang.String id)
          get blackboard service for request.
 MessageHelper getMessageHelper()
          get message helper.
 java.lang.Exception getPipeletException(java.lang.String requestId)
          get exception thrown by a pipelet in this pipeline.
 java.lang.String initRequest(Blackboard blackboard)
          generate new request id and store blackboard.
 void setPipeletException(java.lang.String requestId, java.lang.Exception ex)
          store a pipelet exception for better error reporting if the engine finally fails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestTableImpl

public RequestTableImpl()
Method Detail

activate

protected void activate()

initRequest

public java.lang.String initRequest(Blackboard blackboard)
Description copied from interface: RequestTable
generate new request id and store blackboard.

Specified by:
initRequest in interface RequestTable

getBlackboard

public Blackboard getBlackboard(java.lang.String id)
                         throws ProcessingException
Description copied from interface: RequestTable
get blackboard service for request.

Specified by:
getBlackboard in interface RequestTable
Parameters:
id - request ID
Returns:
blackboard service.
Throws:
ProcessingException - no blackboard associated with id

getPipeletException

public java.lang.Exception getPipeletException(java.lang.String requestId)
Description copied from interface: RequestTable
get exception thrown by a pipelet in this pipeline.

Specified by:
getPipeletException in interface RequestTable

setPipeletException

public void setPipeletException(java.lang.String requestId,
                                java.lang.Exception ex)
Description copied from interface: RequestTable
store a pipelet exception for better error reporting if the engine finally fails.

Specified by:
setPipeletException in interface RequestTable
Parameters:
requestId - id of request
ex - exception thrown during pipelet execution.

cleanupRequest

public void cleanupRequest(java.lang.String requestId)
Description copied from interface: RequestTable
release blackboard and caught exception.

Specified by:
cleanupRequest in interface RequestTable

getMessageHelper

public MessageHelper getMessageHelper()
Description copied from interface: RequestTable
get message helper.

Specified by:
getMessageHelper in interface RequestTable

SMILA 1.0 API documentation