org.apache.geronimo.commands
Class ConnectCommand
java.lang.Object
org.apache.geronimo.gshell.command.CommandSupport
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 classes/interfaces inherited from interface org.apache.geronimo.gshell.command.Command |
org.apache.geronimo.gshell.command.Command.Result |
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 |
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 |
SERVER_CONNECTION
public static final String SERVER_CONNECTION
ConnectCommand
public ConnectCommand()
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.