it.eng.spagobi.engines.commonj.process
Class CmdExecWork

java.lang.Object
  extended by it.eng.spagobi.engines.commonj.process.SpagoBIWork
      extended by it.eng.spagobi.engines.commonj.process.CmdExecWork
All Implemented Interfaces:
commonj.work.Work, java.lang.Runnable

public class CmdExecWork
extends SpagoBIWork


Constructor Summary
CmdExecWork()
           
 
Method Summary
 int execCommand()
          this method executes command followed by command parameters taken from template and by sbi parameters and add classpath variables followed by -cp
 java.util.Vector<java.lang.String> getClasspathParameters()
           
 java.util.Vector<java.lang.String> getCmdParameters()
           
 java.lang.String getCommand()
           
 java.lang.String getCommandEnvironment()
           
 boolean isDaemon()
           
 void release()
           
 void setClasspathParameters(java.util.Vector<java.lang.String> classpathParameters)
           
 void setCmdParameters(java.util.Vector<java.lang.String> cmdParameters)
           
 void setCommand(java.lang.String command)
           
 void setCommandEnvironment(java.lang.String commandEnvironment)
           
 
Methods inherited from class it.eng.spagobi.engines.commonj.process.SpagoBIWork
getAnalyticalParameters, getPid, getSbiLabel, getSbiParameters, isRunning, run, setAnalyticalParameters, setPid, setRunning, setSbiLabel, setSbiParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdExecWork

public CmdExecWork()
Method Detail

isDaemon

public boolean isDaemon()
Specified by:
isDaemon in interface commonj.work.Work
Overrides:
isDaemon in class SpagoBIWork

release

public void release()
Specified by:
release in interface commonj.work.Work
Overrides:
release in class SpagoBIWork

execCommand

public int execCommand()
                throws java.lang.InterruptedException,
                       java.io.IOException
this method executes command followed by command parameters taken from template and by sbi parameters and add classpath variables followed by -cp

Parameters:
cmd -
envFile -
Returns:
Throws:
java.lang.InterruptedException
java.io.IOException

getCommand

public java.lang.String getCommand()

setCommand

public void setCommand(java.lang.String command)

getCommandEnvironment

public java.lang.String getCommandEnvironment()

setCommandEnvironment

public void setCommandEnvironment(java.lang.String commandEnvironment)

getCmdParameters

public java.util.Vector<java.lang.String> getCmdParameters()

setCmdParameters

public void setCmdParameters(java.util.Vector<java.lang.String> cmdParameters)

getClasspathParameters

public java.util.Vector<java.lang.String> getClasspathParameters()

setClasspathParameters

public void setClasspathParameters(java.util.Vector<java.lang.String> classpathParameters)