raccoon.tibco.tibrv.uitest.recorder
Class TibrvMsgKeeper

java.lang.Object
  extended by raccoon.tibco.tibrv.uitest.recorder.TibrvMsgKeeper
All Implemented Interfaces:
IEventHandler

public class TibrvMsgKeeper
extends java.lang.Object
implements IEventHandler

Keeps all incoming events in a memory buffer.

Since:
Raccoon v0.7
Version:
$Id: TibrvMsgKeeper.java,v 1.3 2003/07/01 19:21:00 crouvrais Exp $
Author:
Cedric ROUVRAIS

Constructor Summary
TibrvMsgKeeper(TibrvRecorder pRecorder, java.lang.String pName, IFactory pFactory)
          Convenience constructor
 
Method Summary
 java.lang.String getHandlerName()
          Returns the unique logical name of this event handler.
 java.util.Hashtable getReceivedMessages()
          The received messages
 boolean isRunning()
          Should return true if this instance is active
 void onEvent(java.lang.Object pEventObject, ITracking pEventTracking)
          Handles the incoming EAI Event.
 void setLogger(ILogger pLogger)
           
 void start()
          Invoked by the subscribing application to inform the handler that it must load itself.
 void stop()
          Invoked by the subscribing application to inform the handle that it must shut down.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TibrvMsgKeeper

public TibrvMsgKeeper(TibrvRecorder pRecorder,
                      java.lang.String pName,
                      IFactory pFactory)
Convenience constructor

Parameters:
pRecorder - the recorder to which this instance is attached.
pName - the name of this module.
pFactory - the factory that this memory keeper should use.
Method Detail

onEvent

public void onEvent(java.lang.Object pEventObject,
                    ITracking pEventTracking)
             throws RaccoonException
Handles the incoming EAI Event. This method, to be implemented by all EventHandlers, will be invoked each time a message arrives on the subject/topic

Specified by:
onEvent in interface IEventHandler
Parameters:
pEventObject - the java object that was received by the subscriber
pEventTracking - the tracking element related to this event.
Throws:
RaccoonException - the only type of exception you have the right to throw.

getHandlerName

public java.lang.String getHandlerName()
Returns the unique logical name of this event handler. This logical name is used to selectively start/stop event handlers, it must be unique per subscriber.

Specified by:
getHandlerName in interface IEventHandler
Returns:
the logical name of this event handled

start

public void start()
           throws RaccoonException
Invoked by the subscribing application to inform the handler that it must load itself.

Specified by:
start in interface IEventHandler
Throws:
RaccoonException - if the handler couldn't load itself.

stop

public void stop()
          throws RaccoonException
Invoked by the subscribing application to inform the handle that it must shut down.

Specified by:
stop in interface IEventHandler
Throws:
RaccoonException - if the event handler can't shut down.

isRunning

public boolean isRunning()
Should return true if this instance is active

Specified by:
isRunning in interface IEventHandler
Returns:
boolean the state of this event handler.

getReceivedMessages

public java.util.Hashtable getReceivedMessages()
The received messages

Returns:
an array list of IBusMessage

setLogger

public void setLogger(ILogger pLogger)


Copyright null null. All Rights Reserved.