|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUnitRecorder
A message recorder for a MOM.
| Field Summary | |
|---|---|
static java.lang.String |
RECORDING_CHANNEL
The name of the property assigned to the recording channels. |
| Method Summary | |
|---|---|
void |
addRecordingChannel(ComponentFile pRecordingChannel)
Adds a new recording channel to the list of current recording channels. |
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. |
boolean |
isRecording()
State of the recorder. |
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 |
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. |
int |
startRecording()
Starts the recorder. |
long |
stopRecording()
Stops the recorder. |
| Field Detail |
|---|
static final java.lang.String RECORDING_CHANNEL
setRecordingChannels(java.util.ArrayList), getRecordingChannels() and
addRecordingChannel(raccoon.core.uitest.data.ComponentFile)
| Method Detail |
|---|
boolean isRecording()
true if the recorder is still recording.
int startRecording()
throws RaccoonException
RaccoonException - if the recorder isn't able to start recording.
long stopRecording()
throws RaccoonException
RaccoonException - if this recorder was unable to stop one or more listeners.long getNbOfMsgsRecorded()
void setRecordingChannels(java.util.ArrayList pRecordingChannels)
throws RaccoonException,
java.lang.IllegalArgumentException
pRecordingChannels - 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)java.util.ArrayList getRecordingChannels()
ArrayList of ComponentFile.
void addRecordingChannel(ComponentFile pRecordingChannel)
throws RaccoonException,
java.lang.IllegalArgumentException
pRecordingChannel - 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)
java.util.Map getRecordedMsgs()
throws java.lang.IllegalStateException
key: an instance of Datevalue: a list of IMessage instances received at
the specified date.
java.lang.IllegalStateException - if this recorder has never recorder any messages.
IMessage loadMessage(org.xml.sax.InputSource pSource)
throws RaccoonException
pSource - the xml input source (usually generated by this recorder)
RaccoonException - if the xml input source is invalid.int getRecorderId()
void setRecorderId(int pRecorderId)
pRecorderId - the id of this recorder.IComparator newComparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||