public interface IClientDelegate extends IRecordingComponentDelegate
Modifier and Type | Method and Description |
---|---|
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.
|
getProperty, messageReceived, setProperty
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()
© Copyright IBM Corp. 2013. All rights reserved.