Search in sources :

Example 1 with Stoppable

use of org.apache.jmeter.gui.Stoppable in project jmeter by apache.

the class StopStoppables method doAction.

/* (non-Javadoc)
     * @see org.apache.jmeter.gui.action.AbstractAction#doAction(java.awt.event.ActionEvent)
     */
@Override
public void doAction(ActionEvent e) {
    GuiPackage instance = GuiPackage.getInstance();
    List<Stoppable> stopables = instance.getStoppables();
    for (Stoppable element : stopables) {
        instance.unregister(element);
        element.stopServer();
    }
}
Also used : GuiPackage(org.apache.jmeter.gui.GuiPackage) Stoppable(org.apache.jmeter.gui.Stoppable)

Aggregations

GuiPackage (org.apache.jmeter.gui.GuiPackage)1 Stoppable (org.apache.jmeter.gui.Stoppable)1