|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object raccoon.tibco.tibrv.uitest.recorder.TibrvMsgWriter
public class TibrvMsgWriter
Writes all incoming events to the hard drive.
Constructor Summary | |
---|---|
TibrvMsgWriter(TibrvRecorder pRecorder,
java.lang.String pName,
java.lang.String pSaveFolder,
IFactory pFactory,
IXmlToMessage pXmlParser,
ILogger pLogger)
Convenience constructor. |
Method Summary | |
---|---|
java.io.File |
createNewFile(java.lang.String pSendSubject,
long pTimeStamp)
Creates a new file with a unique name. |
java.lang.String |
getHandlerName()
Returns the unique logical name of this event handler. |
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)
Assigns the logger that this writer should use. |
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 |
---|
public TibrvMsgWriter(TibrvRecorder pRecorder, java.lang.String pName, java.lang.String pSaveFolder, IFactory pFactory, IXmlToMessage pXmlParser, ILogger pLogger)
pRecorder
- the recording instance to which this instance is attached.pName
- the first part of the file names containing the messages received.pSaveFolder
- the output folder where this instance should store the messages.pFactory
- the factory used to create IMessage
instances from a
TIB/Rendezvous message.pXmlParser
- the IMessage
to XML Stream conversion utility.Method Detail |
---|
public void onEvent(java.lang.Object pEventObject, ITracking pEventTracking) throws RaccoonException
onEvent
in interface IEventHandler
pEventObject
- the java object that was received by the subscriberpEventTracking
- the tracking element related to this event.
RaccoonException
- the only type of exception you have the right to
throw.public java.lang.String getHandlerName()
getHandlerName
in interface IEventHandler
public void start() throws RaccoonException
start
in interface IEventHandler
RaccoonException
- if the handler couldn't load itself.public void stop() throws RaccoonException
stop
in interface IEventHandler
RaccoonException
- if the event handler can't shut down.public boolean isRunning()
true
if this instance is active
isRunning
in interface IEventHandler
public java.io.File createNewFile(java.lang.String pSendSubject, long pTimeStamp)
handlerName
_IBusMessage.getMsgSend()
sendSubject}_timeStamp
.xml
This file will be placed under the directory specified at the instanciation of this class
or the default directory.
pSendSubject
- the send subject of the message that will be put into this file.pTimeStamp
- the time that the message was received
public void setLogger(ILogger pLogger)
pLogger
- the logging instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |