Package org.apache.jmeter.gui.action
Class ActionRouter
java.lang.Object
org.apache.jmeter.gui.action.ActionRouter
- All Implemented Interfaces:
ActionListener
,EventListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPostActionListener
(Class<?> action, ActionListener listener) Allows an ActionListener to receive notification of a command being executed after the command has executed.void
addPreActionListener
(Class<?> action, ActionListener listener) Allows an ActionListener to receive notification of a command being executed prior to the actual execution of the command.void
To execute an action immediately in the current thread.Get the set ofCommand
s registered under the nameactionName
static ActionRouter
Gets the Instance attribute of the ActionRouter classvoid
Only for use by the JMeter.startGui.void
removePostActionListener
(Class<?> action, ActionListener listener) Allows an ActionListener to be removed from receiving notifications of a command being executed after the command has executed.void
removePreActionListener
(Class<?> action, ActionListener listener) Allows an ActionListener to be removed from receiving notifications of a command being executed prior to the actual execution of the command.
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
doActionNow
To execute an action immediately in the current thread.- Parameters:
e
- the action to execute
-
getAction
Get the set ofCommand
s registered under the nameactionName
-
getAction
-
getAction
-
addPreActionListener
Allows an ActionListener to receive notification of a command being executed prior to the actual execution of the command.- Parameters:
action
- the Class of the command for which the listener will notifications for. Class must extend org.apache.jmeter.gui.action.Command.listener
- the ActionListener to receive the notifications
-
removePreActionListener
Allows an ActionListener to be removed from receiving notifications of a command being executed prior to the actual execution of the command.- Parameters:
action
- the Class of the command for which the listener will notifications for. Class must extend org.apache.jmeter.gui.action.Command.listener
- the ActionListener to receive the notifications
-
addPostActionListener
Allows an ActionListener to receive notification of a command being executed after the command has executed.- Parameters:
action
- the Class of the command for which the listener will notifications for. Class must extend org.apache.jmeter.gui.action.Command.listener
- TheActionListener
to be registered
-
removePostActionListener
Allows an ActionListener to be removed from receiving notifications of a command being executed after the command has executed.- Parameters:
action
- the Class of the command for which the listener will notifications for. Class must extend org.apache.jmeter.gui.action.Command.listener
- TheActionListener
that should be deregistered
-
populateCommandMap
public void populateCommandMap()Only for use by the JMeter.startGui. This method must not be called by getInstance() as was done previously. See Bug 58790 -
getInstance
Gets the Instance attribute of the ActionRouter class- Returns:
- The Instance value
-