org.codehaus.gmaven.mojo.support
Class ProcessLauncher

java.lang.Object
  extended by org.codehaus.gmaven.mojo.support.ProcessLauncher
All Implemented Interfaces:
groovy.lang.GroovyObject

public class ProcessLauncher
extends Object
implements groovy.lang.GroovyObject

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

Version:
$Id: ProcessLauncher.groovy 8 2009-07-16 09:15:04Z user57 $
Author:
Jason Dillon

Constructor Summary
ProcessLauncher()
           
 
Method Summary
 boolean getBackground()
           
 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 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

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()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2006-2012 Codehaus. All Rights Reserved.