|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClient
A client is a concrete recording component that can be executed in order to produce traffic
that will be capture by a IRecorder
. A client can be started
,
stopped
, and killed
. Its nature and behavior are parameterized
by its client configuration
. It may be bound to zero or more
recorders
, which can set it up in a way that allow them to capture the
traffic initiated by the client. A client belongs to a recording session
, and
has a state
. It can be observed by listeners
.
Method Summary | |
---|---|
void |
addListener(IClientListener listener)
|
ClientConfiguration |
getClientConfiguration()
|
List<IRecorder> |
getRecorders()
|
ClientState |
getState()
Returns the current state of the client. |
void |
kill()
Asks the client to stop immediately, allowing it to lose data if necessary. |
void |
removeListener(IClientListener listener)
|
void |
start()
Starts the client. |
void |
stop()
Asks the client to stop. |
Methods inherited from interface com.ibm.rational.test.lt.recorder.core.session.IRecordingComponent |
---|
getName, getProperty, getSession, getType, sendMessage, setProperty |
Method Detail |
---|
void start()
void stop()
void kill()
IClient.stop()
, and then invoke
IClient.kill()
only if the client does respond to the stop request whereas there
is no legitimate reason for it not to stop.
ClientConfiguration getClientConfiguration()
void addListener(IClientListener listener)
void removeListener(IClientListener listener)
ClientState getState()
synchronized(client) { if (client.getState() == ClientState.RUNNING) { client.stop(); // This method may throw an IllegalStateException // if invoked while the client is in STOPPING state } }
List<IRecorder> getRecorders()
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |