|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectraccoon.core.types.AbsComponent
raccoon.core.types.AbsLoadable
raccoon.core.types.AbsConfigurableLoadable
raccoon.tibco.tibrv.uitest.TibrvRecorder
public class TibrvRecorder
Records all the messages found on the messaging layer for TIB/Rendezvous.
| Field Summary |
|---|
| Fields inherited from class raccoon.core.types.AbsConfigurableLoadable |
|---|
mConfigurableManager |
| Fields inherited from class raccoon.core.types.AbsLoadable |
|---|
mIsLoaded |
| Fields inherited from class raccoon.core.types.AbsComponent |
|---|
mIsInError |
| Fields inherited from interface raccoon.api.eai.uitest.IUnitRecorder |
|---|
RECORDING_CHANNEL |
| Constructor Summary | |
|---|---|
TibrvRecorder()
Default constructor, required for dynamic instanciation |
|
| Method Summary | |
|---|---|
void |
addRecordingChannel(ComponentFile pRecordingChannel)
Adds a new recording channel to the list of current recording channels. |
void |
configureParameters()
Configures the various parameters for this component. |
IFactory |
getFactory()
Retrieves the factory instance used to instanciate empty message objects. |
protected ILogger |
getLog()
The logger in use by this component. |
int |
getNbDispatchers()
The number of threads assigned to this recorder. |
long |
getNbOfMsgsRecorded()
The number of messages recorded. |
java.util.Map |
getRecordedMsgs()
Retrieves all the retrieved messages during the recording process. |
int |
getRecorderId()
The recorder id, valid only in UiTest scenario. |
java.util.ArrayList |
getRecordingChannels()
The list of channels that are being monitored |
IXmlToMessage |
getXmlParser()
The message to xml parser. |
void |
incNbMsgRecorded()
Invoked on each received event. |
boolean |
isRecording()
State of the recorder. |
void |
load()
Invoked by the service manager to start this component once it has been configured. |
IMessage |
loadMessage(org.xml.sax.InputSource pSource)
Converts the contents of an XML input source into a valid message. |
IComparator |
newComparator()
Creates a message comparator for this recorder |
void |
setFactory(IFactory pFactory)
Assigns the IFactory used to instanciate empty message objects. |
void |
setNbDispatchers(int pNbDispatchers)
Assigns the number of threads for this recorder |
void |
setRecorderId(int pRecorderId)
Assigns the id of this recorder within the contexte of an UiTest scenario. |
void |
setRecordingChannels(java.util.ArrayList pRecordingChannels)
Sets the channels from which to record events. |
void |
setXmlParser(IXmlToMessage pXmlParser)
Defines the message to xml parser to use. |
int |
startRecording()
Starts the recorder. |
long |
stopRecording()
Stops the recorder. |
| Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
|---|
isStable, setConfigurableManager, setLogger |
| Methods inherited from class raccoon.core.types.AbsLoadable |
|---|
isInError, isInitialised, isRunning, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TibrvRecorder()
| Method Detail |
|---|
public void configureParameters()
IConfigurableManager provided during the invocation
of AbsConfigurableLoadable.setConfigurableManager(raccoon.api.types.IConfigurableManager).
configureParameters in interface IConfigurableconfigureParameters in class AbsConfigurableLoadableprotected ILogger getLog()
getLog in class AbsLoadablepublic IComparator newComparator()
newComparator in interface IUnitRecorderpublic int getNbDispatchers()
public void setNbDispatchers(int pNbDispatchers)
pNbDispatchers - the number of threads.public int getRecorderId()
getRecorderId in interface IUnitRecorderpublic void setRecorderId(int pRecorderId)
setRecorderId in interface IUnitRecorderpRecorderId - the id of this recorder.public IFactory getFactory()
IFactory instance used
public void setFactory(IFactory pFactory)
throws RaccoonException,
java.lang.IllegalArgumentException
IFactory used to instanciate empty message objects.
pFactory - the factory instance to use.
RaccoonException - if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException - if the parameter is null, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)public IXmlToMessage getXmlParser()
IXmlToMessage used.
public void setXmlParser(IXmlToMessage pXmlParser)
throws RaccoonException,
java.lang.IllegalArgumentException
pXmlParser - the utility to convert TIB/Rendezvous messages into an XML String.
RaccoonException - if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException - if the parameter is null, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)public boolean isRecording()
isRecording in interface IUnitRecordertrue if the recorder is still recording.
public int startRecording()
throws RaccoonException
startRecording in interface IUnitRecorderRaccoonException - if one the recorders couldn't be started.
public long stopRecording()
throws RaccoonException
stopRecording in interface IUnitRecorderRaccoonException - if one or more of the recorders couldn't be stopped.
public IMessage loadMessage(org.xml.sax.InputSource pSource)
throws RaccoonException
loadMessage in interface IUnitRecorderpSource - the xml input source (usually generated by this recorder)
RaccoonException - if the xml input source is invalid.public long getNbOfMsgsRecorded()
getNbOfMsgsRecorded in interface IUnitRecorderpublic void incNbMsgRecorded()
public void setRecordingChannels(java.util.ArrayList pRecordingChannels)
throws RaccoonException,
java.lang.IllegalArgumentException
setRecordingChannels in interface IUnitRecorderpRecordingChannels - the channels.
RaccoonException - if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException - if the parameter is null, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)public java.util.ArrayList getRecordingChannels()
getRecordingChannels in interface IUnitRecorderArrayList of ComponentFile
public void addRecordingChannel(ComponentFile pRecordingChannel)
throws RaccoonException,
java.lang.IllegalArgumentException
addRecordingChannel in interface IUnitRecorderpRecordingChannel - the new recording channel to add.
RaccoonException - if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException - if the parameter is null, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)
public void load()
throws LoadableException
false and then set to true once all the init code has been performed.
Checks if all the required properties are set.
load in interface ILoadableload in class AbsConfigurableLoadableLoadableException - if this component isn't initialisable or is already running.
public java.util.Map getRecordedMsgs()
throws java.lang.IllegalStateException
key: an instance of Datevalue: a list of IMessage instances received at the specified date.
getRecordedMsgs in interface IUnitRecorderjava.lang.IllegalStateException - if this recorder has never recorder any messages.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||