Rio Project 4.2 API Documentation
org.rioproject.exec.support
Class PosixShell
java.lang.Object
org.rioproject.exec.support.PosixShell
- All Implemented Interfaces:
- Shell
public class PosixShell
- extends Object
- implements Shell
A Shell implementation that forks commands for posix compliant systems
- Author:
- Dennis Reedy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PosixShell
public PosixShell()
setShellTemplate
public void setShellTemplate(String template)
- Description copied from interface:
Shell
- Set the template to generate a script that will be executed
in the background.
- Specified by:
setShellTemplate in interface Shell
- Parameters:
template - The template, to be loaded as a classpath resource, used
to generate a platform specific script to execute a command in the
background.
exec
public ProcessManager exec(ExecDescriptor execDescriptor)
throws IOException
- Description copied from interface:
Shell
- Execute a command, returning a
ProcessManager
- Specified by:
exec in interface Shell
- Parameters:
execDescriptor - The descriptor for the service control adapter
- Returns:
- A
ProcessManager for managing the started Process
- Throws:
IOException - if the command cannot be executed- See Also:
Shell.exec(org.rioproject.exec.ExecDescriptor)
Copyright © 2006-2011 Rio Project. All Rights Reserved.