org.apache.geronimo.commands
Class WaitForServerCommand

java.lang.Object
  extended by org.apache.geronimo.gshell.command.CommandSupport
      extended by org.apache.geronimo.commands.ConnectCommand
          extended by org.apache.geronimo.commands.WaitForServerCommand
All Implemented Interfaces:
org.apache.geronimo.gshell.command.Command

public class WaitForServerCommand
extends ConnectCommand

Wait for a Geronimo server to start.


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.commands.ConnectCommand
SERVER_CONNECTION
 
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
WaitForServerCommand()
           
 
Method Summary
protected  ServerConnection connect()
           
protected  Object doExecute()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 int getTimeout()
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 void setTimeout(int value)
           
 
Methods inherited from class org.apache.geronimo.commands.ConnectCommand
disconnect, getHostname, getPassword, getPort, getPrompter, getSecure, getUsername, isConnected, isSecure, openConnection, setHostname, setPassword, setPort, setPrompter, setSecure, setUsername
 
Methods inherited from class org.apache.geronimo.gshell.command.CommandSupport
displayHelp, execute, getDescription, getId, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaitForServerCommand

public WaitForServerCommand()
Method Detail

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int value)

doExecute

protected Object doExecute()
                    throws Exception
Overrides:
doExecute in class ConnectCommand
Throws:
Exception

connect

protected ServerConnection connect()
Overrides:
connect in class ConnectCommand

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Overrides:
getMetaClass in class ConnectCommand

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Overrides:
setMetaClass in class ConnectCommand

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Overrides:
invokeMethod in class ConnectCommand

getProperty

public Object getProperty(String name)
Overrides:
getProperty in class ConnectCommand

setProperty

public void setProperty(String name,
                        Object value)
Overrides:
setProperty in class ConnectCommand


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