com.xebialabs.deployit.hostsession
Interface CommandExecution


public interface CommandExecution

An executing command on a host.


Method Summary
 java.io.InputStream getStderr()
          Returns an input stream that is connected to the standard error stream (stderr) of the running command.
 java.io.OutputStream getStdin()
          Returns an output stream that is connected to the standard input stream (stdin) of the running command.
 java.io.InputStream getStdout()
          Returns an input stream that is connected to the standard output stream (stdout) of the running command.
 int waitFor()
          Waits for the command to complete its execution.
 

Method Detail

getStdin

java.io.OutputStream getStdin()
Returns an output stream that is connected to the standard input stream (stdin) of the running command.

Returns:
the input stream

getStdout

java.io.InputStream getStdout()
Returns an input stream that is connected to the standard output stream (stdout) of the running command.

Returns:
the output stream

getStderr

java.io.InputStream getStderr()
Returns an input stream that is connected to the standard error stream (stderr) of the running command.

Returns:
the output stream

waitFor

int waitFor()
Waits for the command to complete its execution.

Returns:
the exit value of the executed command


Copyright © 2010. All Rights Reserved.