|
||||||||||
| 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.TibrvPlayer
public class TibrvPlayer
The implementation of IUnitPlayer 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.IUnitPlayer |
|---|
PLAYER_CHANNEL, REPEAT, REPEAT_INFINITE, REPEAT_ONCE |
| Constructor Summary | |
|---|---|
TibrvPlayer()
Default constructor, required for dynamic instanciation. |
|
| Method Summary | |
|---|---|
void |
addPlayerChannel(ComponentFile pRecordingChannel)
Adds a new player channel to the list of current playing channels. |
void |
configureParameters()
Configures the various parameters for this component. |
IFactory |
getFactory()
Retrieves the factory instance used to instanciate empty message objects. |
java.util.ArrayList |
getPlayerChannels()
The list of channels on which the messages are being sent. |
int |
getRepeat()
The number of times this unit player must repeat the specified sequence. |
IXmlToMessage |
getXmlParser()
The message to xml parser. |
void |
load()
Invoked by the service manager to start this component once it has been configured. |
void |
run()
Publishes all the sequenced messages. |
void |
setFactory(IFactory pFactory)
Assigns the IFactory used to instanciate empty message objects. |
void |
setPlayerChannels(java.util.ArrayList pPlayerChannels)
Sets the channels to which the events are to be sent. |
void |
setRepeat(int pRepeat)
Defines the number of times this player should repeat the sequence. |
void |
setXmlParser(IXmlToMessage pXmlParser)
Defines the message to xml parser to use. |
void |
stop()
Invoke this method to stop the player from sending messages. |
| Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
|---|
isStable, setConfigurableManager, setLogger |
| Methods inherited from class raccoon.core.types.AbsLoadable |
|---|
getLog, 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 TibrvPlayer()
| Method Detail |
|---|
public int getRepeat()
getRepeat in interface IUnitPlayer
public void setRepeat(int pRepeat)
throws RaccoonException,
java.lang.IllegalArgumentException
setRepeat in interface IUnitPlayerpRepeat - the number of times this player should repeat the sequence, zero for infinite.
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 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 void setPlayerChannels(java.util.ArrayList pPlayerChannels)
throws RaccoonException,
java.lang.IllegalArgumentException
setPlayerChannels in interface IUnitPlayerpPlayerChannels - 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 getPlayerChannels()
getPlayerChannels in interface IUnitPlayerArrayList of ComponentFile
public void addPlayerChannel(ComponentFile pRecordingChannel)
throws RaccoonException,
java.lang.IllegalArgumentException
addPlayerChannel in interface IUnitPlayerpRecordingChannel - the new playing 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 void run()
throws RaccoonException
run in interface IUnitPlayerRaccoonException - if the publication is interrupted.public void stop()
public void configureParameters()
IConfigurableManager provided during the invocation
of AbsConfigurableLoadable.setConfigurableManager(raccoon.api.types.IConfigurableManager).
configureParameters in interface IConfigurableconfigureParameters in class AbsConfigurableLoadable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||