Class ConcurrentTestPlugin
- java.lang.Object
-
- org.apache.calcite.test.concurrent.ConcurrentTestPlugin
-
- Direct Known Subclasses:
SamplePlugin
public abstract class ConcurrentTestPlugin extends java.lang.Object
Used to extend functionality of mtsql.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentTestPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ConcurrentTestPluginCommand
getCommandFor(java.lang.String name, java.lang.String params)
Create and return plugin command for given name.java.lang.Iterable<java.lang.String>
getSupportedPreSetupCommands()
What commands are supported by this plugin before the setup section.java.lang.Iterable<java.lang.String>
getSupportedThreadCommands()
What commands are supported by this plugin within a thread or repeat section.boolean
isTestDisabled()
Should containing test be disabled?void
preSetupFor(java.lang.String name, java.lang.String params)
Do pre-setup action for given command and parameters.
-
-
-
Method Detail
-
isTestDisabled
public boolean isTestDisabled()
Should containing test be disabled?- Returns:
- true if containing test should be disabled
-
getSupportedThreadCommands
public java.lang.Iterable<java.lang.String> getSupportedThreadCommands()
What commands are supported by this plugin within a thread or repeat section. Commands should start with '@'.- Returns:
- List of supported commands
-
getSupportedPreSetupCommands
public java.lang.Iterable<java.lang.String> getSupportedPreSetupCommands()
What commands are supported by this plugin before the setup section. Commands should start with '@'.- Returns:
- List of supported commands
-
getCommandFor
public abstract ConcurrentTestPluginCommand getCommandFor(java.lang.String name, java.lang.String params)
Create and return plugin command for given name.- Parameters:
name
- Name of command pluginparams
- parameters for command.- Returns:
- Initialized plugin command.
-
preSetupFor
public void preSetupFor(java.lang.String name, java.lang.String params)
Do pre-setup action for given command and parameters.- Parameters:
name
- Name of command pluginparams
- parameters for command.
-
-