org.apache.geronimo.commands
Class ConnectCommand

java.lang.Object
  extended by org.apache.geronimo.gshell.command.CommandSupport
      extended by org.apache.geronimo.commands.ConnectCommand
All Implemented Interfaces:
org.apache.geronimo.gshell.command.Command
Direct Known Subclasses:
AssembleServerCommand, DeployModuleCommand, DistributeModuleCommand, InstallLibraryCommand, InstallPluginCommand, ListConfigurationsCommand, ListModulesCommand, ListTargetsCommand, RedeployModuleCommand, RestartModuleCommand, StartModuleCommand, StopModuleCommand, StopServerCommand, UndeployModuleCommand, WaitForServerCommand

public class ConnectCommand
extends org.apache.geronimo.gshell.command.CommandSupport

Stops a running Geronimo server instance.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.gshell.command.Command
org.apache.geronimo.gshell.command.Command.Result
 
Field Summary
static String 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
ConnectCommand()
           
 
Method Summary
protected  ServerConnection connect()
           
protected  void disconnect()
           
protected  Object doExecute()
           
 String getHostname()
           
 groovy.lang.MetaClass getMetaClass()
           
 String getPassword()
           
 int getPort()
           
 org.apache.geronimo.gshell.console.PromptReader getPrompter()
           
 Object getProperty(String name)
           
 boolean getSecure()
           
 String getUsername()
           
 Object invokeMethod(String name, Object args)
           
protected  boolean isConnected()
           
 boolean isSecure()
           
protected  ServerConnection openConnection(boolean quiet)
           
 void setHostname(String value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setPassword(String value)
           
 void setPort(int value)
           
 void setPrompter(org.apache.geronimo.gshell.console.PromptReader value)
           
 void setProperty(String name, Object value)
           
 void setSecure(boolean value)
           
 void setUsername(String value)
           
 
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
 

Field Detail

SERVER_CONNECTION

public static final String SERVER_CONNECTION
Constructor Detail

ConnectCommand

public ConnectCommand()
Method Detail

getHostname

public String getHostname()

setHostname

public void setHostname(String value)

getPort

public int getPort()

setPort

public void setPort(int value)

getUsername

public String getUsername()

setUsername

public void setUsername(String value)

getPassword

public String getPassword()

setPassword

public void setPassword(String value)

getSecure

public boolean getSecure()

isSecure

public boolean isSecure()

setSecure

public void setSecure(boolean value)

getPrompter

public org.apache.geronimo.gshell.console.PromptReader getPrompter()

setPrompter

public void setPrompter(org.apache.geronimo.gshell.console.PromptReader value)

doExecute

protected Object doExecute()
                    throws Exception
Specified by:
doExecute in class org.apache.geronimo.gshell.command.CommandSupport
Throws:
Exception

openConnection

protected ServerConnection openConnection(boolean quiet)
                                   throws Exception
Throws:
Exception

connect

protected ServerConnection connect()

isConnected

protected boolean isConnected()

disconnect

protected void disconnect()

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.