org.apache.geronimo.commands
Class BaseJavaCommand

java.lang.Object
  extended by org.apache.geronimo.gshell.command.CommandSupport
      extended by org.apache.geronimo.commands.BaseJavaCommand
All Implemented Interfaces:
org.apache.geronimo.gshell.command.Command
Direct Known Subclasses:
StartClientCommand, StartServerCommand

public abstract class BaseJavaCommand
extends org.apache.geronimo.gshell.command.CommandSupport

Support for commands which spin off a Java process.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.gshell.command.Command
org.apache.geronimo.gshell.command.Command.Result
 
Field Summary
 
Fields inherited from class org.apache.geronimo.gshell.command.CommandSupport
context, io, log, variables
 
Fields inherited from interface org.apache.geronimo.gshell.command.Command
FAILURE, SUCCESS
 
Constructor Summary
BaseJavaCommand()
           
 
Method Summary
protected  void addPropertyFrom(String nameValue, String prefix)
           
 AntBuilder getAnt()
           
 boolean getBackground()
           
 File getGeronimoHome()
           
 String getJavaAgent()
           
protected  File getJavaAgentJar()
           
 List getJavaFlags()
           
 File getJavaVirtualMachine()
           
 File getLogFile()
           
 groovy.lang.MetaClass getMetaClass()
           
 List getProfiles()
           
 Map getProperties()
           
 Object getProperty(String name)
           
 org.apache.geronimo.gshell.shell.ShellInfo getShellInfo()
           
 int getTimeout()
           
 Object invokeMethod(String name, Object args)
           
 boolean isBackground()
           
protected  String prefixSystemPath(String name, File file)
           
protected  void processScripts()
          Process custom rc.d scripts.
 void setAnt(AntBuilder value)
           
 void setBackground(boolean value)
           
 void setGeronimoHome(File value)
           
protected  void setGeronimoPropertyFrom(String nameValue)
           
 void setJavaAgent(String value)
           
 void setJavaFlags(List value)
           
 void setJavaVirtualMachine(File value)
           
 void setLogFile(File value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProfiles(List value)
           
 void setProperties(Map value)
           
 void setProperty(String name, Object value)
           
protected  void setPropertyFrom(String nameValue)
           
 void setShellInfo(org.apache.geronimo.gshell.shell.ShellInfo value)
           
 void setTimeout(int value)
           
 
Methods inherited from class org.apache.geronimo.gshell.command.CommandSupport
displayHelp, doExecute, execute, getDescription, getId, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseJavaCommand

public BaseJavaCommand()
Method Detail

getAnt

public AntBuilder getAnt()

setAnt

public void setAnt(AntBuilder value)

getShellInfo

public org.apache.geronimo.gshell.shell.ShellInfo getShellInfo()

setShellInfo

public void setShellInfo(org.apache.geronimo.gshell.shell.ShellInfo value)

getGeronimoHome

public File getGeronimoHome()

setGeronimoHome

public void setGeronimoHome(File value)

getJavaVirtualMachine

public File getJavaVirtualMachine()

setJavaVirtualMachine

public void setJavaVirtualMachine(File value)

getJavaAgent

public String getJavaAgent()

setJavaAgent

public void setJavaAgent(String value)

getLogFile

public File getLogFile()

setLogFile

public void setLogFile(File value)

getBackground

public boolean getBackground()

isBackground

public boolean isBackground()

setBackground

public void setBackground(boolean value)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int value)

getProfiles

public List getProfiles()

setProfiles

public void setProfiles(List value)

getProperties

public Map getProperties()

setProperties

public void setProperties(Map value)

getJavaFlags

public List getJavaFlags()

setJavaFlags

public void setJavaFlags(List value)

addPropertyFrom

protected void addPropertyFrom(String nameValue,
                               String prefix)

setPropertyFrom

protected void setPropertyFrom(String nameValue)

setGeronimoPropertyFrom

protected void setGeronimoPropertyFrom(String nameValue)

getJavaAgentJar

protected File getJavaAgentJar()

processScripts

protected void processScripts()
Process custom rc.d scripts.


prefixSystemPath

protected String prefixSystemPath(String name,
                                  File file)

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.