com.businessobjects.sdk.monitoring.probe
Class ScriptExecutor

java.lang.Object
  extended by com.businessobjects.sdk.monitoring.probe.ScriptExecutor

public class ScriptExecutor
extends java.lang.Object


Constructor Summary
ScriptExecutor()
           
 
Method Summary
 java.lang.String convertStreamToString(java.io.InputStream is)
           
 java.lang.String executeCommandLine(java.lang.String cmd, boolean isScript)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptExecutor

public ScriptExecutor()
Method Detail

executeCommandLine

public java.lang.String executeCommandLine(java.lang.String cmd,
                                           boolean isScript)
                                    throws java.lang.Exception
Parameters:
cmd - Command given as an input.
Returns:
Command output
Throws:
java.lang.Exception

convertStreamToString

public java.lang.String convertStreamToString(java.io.InputStream is)
                                       throws java.io.IOException
Throws:
java.io.IOException