com.unboundid.directory.sdk.common.types
Interface ToolExecutor
public interface ToolExecutor
This can be used to internally execute select command line utilities and
return the results. A Server SDK extension can get access to a ToolExecutor
by calling the ServerContext.getToolExecutor()
method.
Method Summary |
ToolResult |
runConfigDiff(java.util.List<java.lang.String> args)
Invokes the config-diff command line utility and returns the result. |
runConfigDiff
ToolResult runConfigDiff(java.util.List<java.lang.String> args)
- Invokes the config-diff command line utility and returns the result.
All command line arguments of config-diff are supported with the
exception of the debugging arguments listed in --help-debug. Invocations
of this method should behave identically to an explicit command line
invocation except the command is run within the current process as
opposed to launching an external process.
- Parameters:
args
- The arguments to use when invoking config-diff.
- Returns:
- The result of the config-diff invocation.