com.ibm.rational.test.lt.recorder.core.session

Interface IClient

    • Method Detail

      • start

        void start()
        Starts the client. This method is asynchronous and the start completion will be notified to registered listeners.
      • stop

        void stop()
        Asks the client to stop. This method is asynchronous and the client termination will be notified to registered listeners. Note that the stop request may be ignored by the client if the client state does not permit termination.
      • kill

        void kill()
        Asks the client to stop immediately, allowing it to lose data if necessary. This method is asynchronous and the client termination will be notified to registered listeners. It is advised to rather invoke 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.
      • getState

        ClientState getState()
        Returns the current state of the client. Note that when state is tested for a decision based on its value, the call to this method, the test, and the decision should be grouped together in a synchronized block on this component.
        For instance:
         synchronized(client) {
           if (client.getState() == ClientState.RUNNING) {
             client.stop(); // This method may throw an IllegalStateException
                               // if invoked while the client is in STOPPING state
           }
         }
         
        Returns:
        the current state of the client
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.