Package org.apache.jmeter.gui.action
Class Restart
java.lang.Object
org.apache.jmeter.gui.action.AbstractAction
org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest
org.apache.jmeter.gui.action.Restart
- All Implemented Interfaces:
- Command,- MenuCreator
@AutoService({Command.class,MenuCreator.class})
public class Restart
extends AbstractActionWithNoRunningTest
implements MenuCreator
Restart JMeter
 Based on https://dzone.com/articles/programmatically-restart-java
- Since:
- 5.0
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.gui.plugin.MenuCreatorMenuCreator.MENU_LOCATION
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringSun property pointing the main class and its arguments.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled to handleActionEventonly if no test is runningMenuItems to be added in location menuJMenu[]voidUpdate Top Level menu on Locale ChangebooleanlocaleChanged(MenuElement menu) static voidrestartApplication(Runnable runBeforeRestart) Restart the current Java applicationMethods inherited from class org.apache.jmeter.gui.action.AbstractActionWithNoRunningTestdoActionMethods inherited from class org.apache.jmeter.gui.action.AbstractActiongetParentFrame, popupCheckExistingFileListener, popupShouldSave
- 
Field Details- 
SUN_JAVA_COMMANDSun property pointing the main class and its arguments. Might not be defined on non Hotspot VM implementations.- See Also:
 
 
- 
- 
Constructor Details- 
Restartpublic Restart()
 
- 
- 
Method Details- 
doActionAfterCheckDescription copied from class:AbstractActionWithNoRunningTestCalled to handleActionEventonly if no test is running- Specified by:
- doActionAfterCheckin class- AbstractActionWithNoRunningTest
- Parameters:
- e-- ActionEvent
- See Also:
 
- 
restartApplicationRestart the current Java application- Parameters:
- runBeforeRestart- some custom code to be run before restarting
 
- 
getActionNames- Specified by:
- getActionNamesin interface- Command
- See Also:
 
- 
getMenuItemsAtLocationDescription copied from interface:MenuCreatorMenuItems to be added in location menu- Specified by:
- getMenuItemsAtLocationin interface- MenuCreator
- Parameters:
- location- in top menu
- Returns:
- array of JMenuItem
 
- 
getTopLevelMenus- Specified by:
- getTopLevelMenusin interface- MenuCreator
- Returns:
- array of JMenu to be put as top level menu between Options and Help
 
- 
localeChanged- Specified by:
- localeChangedin interface- MenuCreator
- Parameters:
- menu- MenuElement
- Returns:
- true if menu was concerned by Locale change
 
- 
localeChangedpublic void localeChanged()Description copied from interface:MenuCreatorUpdate Top Level menu on Locale Change- Specified by:
- localeChangedin interface- MenuCreator
 
 
-