public class RabbitMqPlugins extends RabbitMqDiagnostics
rabbitmq-plugins.| Constructor and Description |
|---|
RabbitMqPlugins(EmbeddedRabbitMqConfig config) |
RabbitMqPlugins(EmbeddedRabbitMqConfig config,
Map<String,String> extraEnvVars) |
RabbitMqPlugins(EmbeddedRabbitMqConfig config,
Set<String> envVarsToDiscard,
Map<String,String> envVarsToAdd) |
RabbitMqPlugins(RabbitMqCommand.ProcessExecutorFactory processExecutorFactory,
File appFolder,
Map<String,String> envVars,
long timeoutInMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable(String plugin)
Disables the given plugin by executing
rabbitmq-plugins disable {plugin} and blocks until the call is
finished. |
void |
enable(String plugin)
Executes the command
rabbitmq-plugins enable {plugin} and blocks until the call finishes. |
protected String |
getCommand() |
Map<Plugin.State,Set<Plugin>> |
groupedList()
Same as
list() but it returns the plugins grouped by state. |
Map<String,Plugin> |
list()
Executes the
rabbitmq-plugins list command |
execute, mapFilterAndAppendpublic RabbitMqPlugins(EmbeddedRabbitMqConfig config)
public RabbitMqPlugins(EmbeddedRabbitMqConfig config, Map<String,String> extraEnvVars)
public RabbitMqPlugins(EmbeddedRabbitMqConfig config, Set<String> envVarsToDiscard, Map<String,String> envVarsToAdd)
public RabbitMqPlugins(RabbitMqCommand.ProcessExecutorFactory processExecutorFactory, File appFolder, Map<String,String> envVars, long timeoutInMillis)
public Map<Plugin.State,Set<Plugin>> groupedList() throws RabbitMqCommandException
list() but it returns the plugins grouped by state.RabbitMqCommandExceptionpublic Map<String,Plugin> list()
rabbitmq-plugins list commandRabbitMqCommandException - if the command cannot be executed, it doesn't
finish in time or exits unexpectedlygroupedList()public void enable(String plugin) throws RabbitMqCommandException
rabbitmq-plugins enable {plugin} and blocks until the call finishes.plugin - the name of the plugin to enable.RabbitMqCommandException - if the command cannot be executed, it doesn't
finish in time or exits unexpectedlypublic void disable(String plugin) throws RabbitMqCommandException
rabbitmq-plugins disable {plugin} and blocks until the call is
finished.plugin - the name of the plugin to disable.RabbitMqCommandException - if the command cannot be executed, it doesn't
finish in time or exits unexpectedlyprotected String getCommand()
getCommand in class RabbitMqDiagnosticsCopyright © 2016–2021. All rights reserved.