|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClientDelegate
A delegate responsible of managing the lifecycle of a specific type of client. A client delegate is responsible of honoring commands (START, STOP) and sending client events to the framework (STARTED, STOPPED). This interface is meant to be implemented by extensions which provide their own client implementation.
Method Summary | |
---|---|
void |
initialize(IClientContext context)
Initializes this instance so it is ready to process commands and send events. |
void |
kill()
Asks the client delegate to stop the client immediately and lose data if necessary. |
void |
postStop()
Invoked after the client has notified its termination. |
boolean |
preStart()
Invoked when the client is about to start. |
void |
start()
Asks the client delegate to start the client. |
void |
stop()
Asks the client delegate to stop the client. |
Methods inherited from interface com.ibm.rational.test.lt.recorder.core.extensibility.IRecordingComponentDelegate |
---|
getProperty, messageReceived, setProperty |
Method Detail |
---|
void initialize(IClientContext context) throws DelegateInitializeException
context
- The client context, that provides the client configuration
that this instance should conform to, and a mechanism for the delegate
to send events to other involved components.
DelegateInitializeException
- If the delegate cannot be initialized or will not be able
to run properly.void start()
IClientContext.clientStarted()
.
void stop()
IClientDelegate.start()
has been invoked. This method should return
without waiting for the stop process to be completed. The delegate is required to
notify its context when the stop is complete by invoking IClientContext#clientStopped()
.
void kill()
IClientDelegate.start()
has been invoked. This method should return
without waiting for the stop process to be completed. The delegate is required to
notify its context when the stop is complete by invoking IClientContext#clientStopped()
.
boolean preStart()
false
value indicates that an
error has occurred and the client can not start. It is up to the implementation to notify
any error using IRecordingComponentContext.getLog()
.IClientDelegate.postStop()
void postStop()
IClientDelegate.preStart()
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |