org.apache.geronimo.commands
Class ProcessLauncher

java.lang.Object
  extended by org.apache.geronimo.commands.ProcessLauncher

public class ProcessLauncher
extends Object

Helper to execute a process and perform some verification logic to determine if the process is up or not.


Constructor Summary
ProcessLauncher()
           
 
Method Summary
 boolean getBackground()
           
 org.apache.geronimo.gshell.command.IO getIo()
           
 groovy.lang.MetaClass getMetaClass()
           
 String getName()
           
 groovy.lang.Closure getProcess()
           
 Object getProperty(String name)
           
 int getTimeout()
           
 groovy.lang.Closure getVerifier()
           
 int getVerifyWaitDelay()
           
 Object invokeMethod(String name, Object args)
           
 boolean isBackground()
           
 Object launch()
           
 void setBackground(boolean value)
           
 void setIo(org.apache.geronimo.gshell.command.IO value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setName(String value)
           
 void setProcess(groovy.lang.Closure value)
           
 void setProperty(String name, Object value)
           
 void setTimeout(int value)
           
 void setVerifier(groovy.lang.Closure value)
           
 void setVerifyWaitDelay(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessLauncher

public ProcessLauncher()
Method Detail

getIo

public org.apache.geronimo.gshell.command.IO getIo()

setIo

public void setIo(org.apache.geronimo.gshell.command.IO value)

getName

public String getName()

setName

public void setName(String value)

getProcess

public groovy.lang.Closure getProcess()

setProcess

public void setProcess(groovy.lang.Closure value)

getVerifier

public groovy.lang.Closure getVerifier()

setVerifier

public void setVerifier(groovy.lang.Closure value)

getVerifyWaitDelay

public int getVerifyWaitDelay()

setVerifyWaitDelay

public void setVerifyWaitDelay(int value)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int value)

getBackground

public boolean getBackground()

isBackground

public boolean isBackground()

setBackground

public void setBackground(boolean value)

launch

public Object launch()

getMetaClass

public groovy.lang.MetaClass getMetaClass()

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)

invokeMethod

public Object invokeMethod(String name,
                           Object args)

getProperty

public Object getProperty(String name)

setProperty

public void setProperty(String name,
                        Object value)


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.