Package com.swiftmq.swiftlet.mgmt
Interface CLIExecutor
public interface CLIExecutor
A CLIExecutor is an entity to execute CLI commands.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute a CLI commandString[]
executeWithResult
(String command) Execute a CLI command that returns a resultReturns the current context.void
setAdminRole
(String name) Sets an admin role to use in this executor
-
Method Details
-
setAdminRole
Sets an admin role to use in this executor- Parameters:
name
-- Throws:
Exception
-
getContext
String getContext()Returns the current context.- Returns:
- context
-
execute
Execute a CLI command- Parameters:
command
- CLI command- Throws:
Exception
- on error.
-
executeWithResult
Execute a CLI command that returns a result- Parameters:
command
- CLI command- Returns:
- result
- Throws:
Exception
- on error.
-