org.apache.camel.component.exec
Interface ExecCommandExecutor
- All Known Implementing Classes:
- DefaultExecCommandExecutor
public interface ExecCommandExecutor
Executes ExecCommand
instances.
execute
ExecResult execute(ExecCommand execCommand)
throws ExecException,
IOException
- Executes the
command
and returns a not-null
ExecResult
instance.
- Parameters:
execCommand
- The command object, that describes the executable application
- Returns:
- the result
- Throws:
ExecException
- if the execution failed
IOException
- if there is an invalid path in the working directory,
or if the absolute path of the command executable is invalid,
or if the executable does not exist
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.