Rio Project 4.2 API Documentation



org.rioproject.exec
Interface Shell

All Known Implementing Classes:
PosixShell

public interface Shell

Interface defining a shell within which commands can be run

Author:
Dennis Reedy

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.
 

Method Detail

exec

ProcessManager exec(ExecDescriptor execDescriptor)
                    throws IOException
Execute a command, returning a ProcessManager

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

setShellTemplate

void setShellTemplate(String template)
Set the template to generate a script that will be executed in the background.

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.

Copyright © Rio Project.

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