com.ibm.websphere.fabric.da.plugin
Interface AssemblyEventListener


public interface AssemblyEventListener

AssemblyEventListener plug-ins are informational plug-ins that have two methods. One runs after ResponseListener plug-ins when an endpoint is found and called. The other runs whenever an endpoint cannot be found.

In the first case, the "handleInvocation" method is called with an object that includes the following data:

Note that it is not passed the response message. Event Listeners are not supposed to make any decisions or take any actions based upon what the endpoint returned. They are mainly intended for use in notifying other frameworks of invocations (for example, you may wish to notify a management framework like Tivoli that an endpoint was invoked).

In the second case, the "handleEndpointNotFound" method is called with an object that includes the following data:

Similar to the first case, you can use this method to inform other frameworks of failures.


Method Summary
 void handleEndpointNotFound(EndpointNotFoundEvent notFound)
          Called when no endpoint is found to handle the request.
 void handleInvocation(InvocationEvent invocation)
          Called when an endpoint has responded and all ResponseListeners have been called.
 

Method Detail

handleInvocation

void handleInvocation(InvocationEvent invocation)
Called when an endpoint has responded and all ResponseListeners have been called. Returns nothing, and cannot affect dynamic assembly processing.

Parameters:
invocation - An InvocationEvent that contains the following data items:
  • The original context for the request
  • The operation and port name for the endpoint.
  • The propagated policy that was passed to the endpoint, if any
  • A summary of the invocation (which includes measured vs. expected response times, etc.)

handleEndpointNotFound

void handleEndpointNotFound(EndpointNotFoundEvent notFound)
Called when no endpoint is found to handle the request. Returns nothing, and cannot affect dynamic assembly processing.

Parameters:
notFound - An EndpointNotFoundEvent that contains the following data items:
  • The original context for the request
  • The operation and port name for the endpoint.
  • The root context ID
  • A String message describing the failure


Copyright © 2002-2009 IBM. All Rights Reserved.