it.eng.spagobi.engines.commonj.process
Class CmdExecWork
java.lang.Object
it.eng.spagobi.engines.commonj.process.SpagoBIWork
it.eng.spagobi.engines.commonj.process.CmdExecWork
- All Implemented Interfaces:
- commonj.work.Work, java.lang.Runnable
public class CmdExecWork
- extends SpagoBIWork
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 |
CmdExecWork
public CmdExecWork()
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)