| Modifier and Type | Method and Description |
|---|---|
CommandLine |
CommandLineFactory.create(File executable)
Create a command line from an executable.
|
CommandLine |
CommandLineFactory.create(String executable)
Create a command line from an executable.
|
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
CommandLine.add(boolean quote,
Object... arguments)
Adds the specified command line arguments.
|
CommandLine |
CommandLine.add(boolean quote,
Object argument)
Adds the specified command line argument.
|
CommandLine |
CommandLine.add(Object... arguments)
Adds the specified command line arguments.
|
CommandLine |
CommandLine.add(Object argument)
Adds the specified command line argument.
|
CommandLine |
CommandLine.addSub(String name,
Object value)
Adds a variable substitution for the arguments.
|
CommandLine |
ProcessTask.getCommandLine()
Returns the command line of the process.
|
| Modifier and Type | Method and Description |
|---|---|
Future<ProcessTask> |
CommandExec.exec(CommandLine commandLine,
PropertyChangeListener... listeners)
Executes the command specified by the command line.
|
| Constructor and Description |
|---|
CommandInterruptedException(ProcessTask processTask,
InterruptedException e,
CommandLine commandLine) |
ExecuteCommandException(CommandExec commandExec,
IOException e,
CommandLine commandLine) |
InvalidExitCodeException(ProcessTask processTask,
int ret,
int[] exitCodes,
CommandLine commandLine) |
StartCommandException(ProcessTask processTask,
Throwable cause,
CommandLine commandLine) |
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
LogCommandOutput.getCommandLine()
Returns the command line for the logging message.
|
| Modifier and Type | Method and Description |
|---|---|
CommandOutput |
TraceLogCommandOutputFactory.create(org.slf4j.Logger logger,
CommandLine commandLine)
Creates the logger output that logs the output as trace level.
|
CommandOutput |
DebugLogCommandOutputFactory.create(org.slf4j.Logger logger,
CommandLine commandLine)
Creates the logger output that logs the output as debug level.
|
CommandOutput |
InfoLogCommandOutputFactory.create(org.slf4j.Logger logger,
CommandLine commandLine)
Creates the logger output that logs the output as info level.
|
CommandOutput |
ErrorLogCommandOutputFactory.create(org.slf4j.Logger logger,
CommandLine commandLine)
Creates the logger output that logs the output as error level.
|
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
ScriptCommandLineFactory.create(String name,
com.anrisoftware.resources.templates.external.TemplateResource template)
Create a script command line from a template.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultCommandLine
Quotes command line arguments.
|
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
DefaultCommandLine.add(boolean quote,
Object... arguments) |
CommandLine |
DefaultCommandLine.add(boolean quote,
Object argument) |
CommandLine |
DefaultCommandLine.add(Object... arguments) |
CommandLine |
DefaultCommandLine.add(Object argument) |
CommandLine |
DefaultCommandLine.addSub(String name,
Object value) |
CommandLine |
DefaultCommandLineServiceImpl.create(File executable) |
CommandLine |
DefaultCommandLineServiceImpl.create(String executable) |
static CommandLine |
DefaultCommandLine.createCommandLine(File executable) |
static CommandLine |
DefaultCommandLine.createCommandLine(String executable) |
| Modifier and Type | Method and Description |
|---|---|
Future<ProcessTask> |
DefaultCommandExec.exec(CommandLine commandLine,
PropertyChangeListener... listeners) |
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
AbstractLogCommandOutput.getCommandLine() |
| Modifier and Type | Method and Description |
|---|---|
CommandOutput |
TraceLogCommandOutputServiceImpl.create(org.slf4j.Logger logger,
CommandLine commandLine) |
CommandOutput |
InfoLogCommandOutputServiceImpl.create(org.slf4j.Logger logger,
CommandLine commandLine) |
CommandOutput |
DebugLogCommandOutputServiceImpl.create(org.slf4j.Logger logger,
CommandLine commandLine) |
CommandOutput |
ErrorLogCommandOutputServiceImpl.create(org.slf4j.Logger logger,
CommandLine commandLine) |
static CommandOutput |
AbstractLogCommandOutput.createDebugLogCommandOutput(org.slf4j.Logger logger,
CommandLine commandLine) |
static CommandOutput |
AbstractLogCommandOutput.createErrorLogCommandOutput(org.slf4j.Logger logger,
CommandLine commandLine) |
static CommandOutput |
AbstractLogCommandOutput.createInfoLogCommandOutput(org.slf4j.Logger logger,
CommandLine commandLine) |
static CommandOutput |
AbstractLogCommandOutput.createTraceLogCommandOutput(org.slf4j.Logger logger,
CommandLine commandLine) |
| Constructor and Description |
|---|
AbstractLogCommandOutput(org.slf4j.Logger logger,
CommandLine commandLine) |
| Modifier and Type | Class and Description |
|---|---|
class |
ScriptCommandLine
Quotes command line arguments.
|
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
ScriptCommandLine.add(boolean quote,
Object... arguments) |
CommandLine |
ScriptCommandLine.add(boolean quote,
Object argument) |
CommandLine |
ScriptCommandLine.add(Object... arguments) |
CommandLine |
ScriptCommandLine.add(Object argument) |
CommandLine |
ScriptCommandLine.addSub(String name,
Object value) |
CommandLine |
ScriptCommandLineServiceImpl.create(String name,
com.anrisoftware.resources.templates.external.TemplateResource template) |
static CommandLine |
ScriptCommandLine.createScriptCommandLine(String name,
com.anrisoftware.resources.templates.external.TemplateResource template) |
| Modifier and Type | Method and Description |
|---|---|
Future<ProcessTask> |
ScriptCommandExec.exec(CommandLine commandLine,
PropertyChangeListener... listeners) |
| Modifier and Type | Method and Description |
|---|---|
protected CommandLine |
ScriptExecImpl.createCommandLine(ScriptCommandLineFactory commandLineFactory) |
protected abstract CommandLine |
AbstractProcessExec.createCommandLine(ScriptCommandLineFactory commandLineFactory)
Creates the command line for the process.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractProcessExec.setupCommandError(CommandExec script,
CommandLine line) |
protected void |
AbstractProcessExec.setupCommandOutput(CommandExec script,
CommandLine line) |
| Constructor and Description |
|---|
ScriptExecException(Exception cause,
CommandLine line,
CommandExec script) |
Copyright © 2014–2016. All rights reserved.