SmartFrog 3.10.000

org.smartfrog.services.shellscript
Interface RunProcess

All Known Implementing Classes:
RunProcessImpl

public interface RunProcess


Method Summary
 void execCommand(java.lang.String command)
           
 java.io.InputStream getErrorStream()
          Gets the error stream of the subprocess.
 java.io.InputStream getInputStream()
          Gets the input stream of the subprocess.
 java.io.OutputStream getOutputStream()
          Gets the output stream of the subprocess.
 int getProcessState()
           
 void kill()
           
 boolean ready()
           
 void run()
           
 void waitForReady(long time)
           
 

Method Detail

getProcessState

int getProcessState()

ready

boolean ready()

run

void run()

execCommand

void execCommand(java.lang.String command)

kill

void kill()

waitForReady

void waitForReady(long time)

getInputStream

java.io.InputStream getInputStream()
Gets the input stream of the subprocess. The stream obtains data piped from the standard output stream of the process (Process) object.

Implementation note: It is a good idea for the input stream to be buffered.

Returns:
the input stream connected to the normal output of the subprocess.

getErrorStream

java.io.InputStream getErrorStream()
Gets the error stream of the subprocess. The stream obtains data piped from the error output stream of the process (Process) object.

Implementation note: It is a good idea for the input stream to be buffered.

Returns:
the input stream connected to the error stream of the subprocess.

getOutputStream

java.io.OutputStream getOutputStream()
Gets the output stream of the subprocess. Output to the stream is piped into the standard input stream of the process (Process) object.

Implementation note: It is a good idea for the output stream to be buffered.

Returns:
the output stream connected to the normal input of the subprocess.

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP