org.apache.jmeter.threads

## Class RemoteThreadsListenerImpl

- java.lang.Object
- - java.rmi.server.RemoteObject
  - - java.rmi.server.RemoteServer
    - - java.rmi.server.UnicastRemoteObject
      - - org.apache.jmeter.threads.RemoteThreadsListenerImpl

- All Implemented Interfaces:
    Serializable, Remote, ThreadListener, RemoteThreadsListener

      public class RemoteThreadsListenerImpl
      extends UnicastRemoteObject
      implements RemoteThreadsListener, ThreadListener

  RMI Implementation, client side code (ie executed on Controller)
  Since:
    2.10
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class java.rmi.server.RemoteObject

      `ref`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RemoteThreadsListenerImpl()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `threadFinished()` Called for each thread after all samples have been processed.
    `void` | `threadStarted()` Called for each thread before starting sampling.

    - ### Methods inherited from class java.rmi.server.UnicastRemoteObject

      `clone, exportObject, exportObject, exportObject, unexportObject`

    - ### Methods inherited from class java.rmi.server.RemoteServer

      `getClientHost, getLog, setLog`

    - ### Methods inherited from class java.rmi.server.RemoteObject

      `equals, getRef, hashCode, toString, toStub`

    - ### Methods inherited from class java.lang.Object

      `finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### RemoteThreadsListenerImpl

          public RemoteThreadsListenerImpl()
                                    throws RemoteException

      Throws:
        `RemoteException` - if failed to export object

  - ### Method Detail

    - #### threadStarted

          public void threadStarted()

      Description copied from interface: `ThreadListener`
      Called for each thread before starting sampling. WARNING: this is called before any Config test elements are processed, so any properties they define will not have been merged in yet. See org.apache.jmeter.threads.JMeterThread#threadStarted()
      Specified by:
        `threadStarted` in interface `ThreadListener`
      Specified by:
        `threadStarted` in interface `RemoteThreadsListener`
      See Also:
        `RemoteThreadsListener.threadStarted()`

    - #### threadFinished

          public void threadFinished()

      Description copied from interface: `ThreadListener`
      Called for each thread after all samples have been processed. See org.apache.jmeter.threads.JMeterThread#threadFinished(org.apache.jmeter.engine.event.LoopIterationListener)
      Specified by:
        `threadFinished` in interface `ThreadListener`
      Specified by:
        `threadFinished` in interface `RemoteThreadsListener`
      See Also:
        `ThreadListener.threadFinished()`

Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.