Rio Project 4.2 API Documentation



org.rioproject.exec.support
Class PosixShell

java.lang.Object
  extended by 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

Constructor Summary
PosixShell()
           
 
Method Summary
 ProcessManager exec(ExecDescriptor execDescriptor)
          Execute a command, returning a ProcessManager
 void setShellTemplate(String template)
          Set the template to generate a script that will be executed in the background.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PosixShell

public PosixShell()
Method Detail

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 © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.