com.xebialabs.deployit.plugin.tomcat.ci
Class TomcatServer
java.lang.Object
com.xebialabs.deployit.BaseConfigurationItem
com.xebialabs.deployit.plugin.tomcat.ci.TomcatServer
- All Implemented Interfaces:
- java.io.Serializable
@ConfigurationItem(description="Tomcat Server instance",
targetForMappingTypes=com.xebialabs.deployit.ci.artifact.mapping.WarMapping.class)
public class TomcatServer- extends com.xebialabs.deployit.BaseConfigurationItem
A Apache Tomcat server
- See Also:
- Serialized Form
| Fields inherited from class com.xebialabs.deployit.BaseConfigurationItem |
label |
| Methods inherited from class com.xebialabs.deployit.BaseConfigurationItem |
equals, getLabel, hashCode, setLabel, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DEPLOYMENT_COMPLETION_WAIT_TIME_MILLIS
public static final int DEPLOYMENT_COMPLETION_WAIT_TIME_MILLIS
- See Also:
- Constant Field Values
host
@ConfigurationItemProperty(required=true,
label="Tomcat server host",
description="Host on which the Tomcat server is running.")
private com.xebialabs.deployit.ci.Host host
port
@ConfigurationItemProperty(required=true,
description="Port for the Tomcat Server, default is 8080")
private int port
accessMethod
@ConfigurationItemProperty(required=true,
description="Protocol to be used for accessing the tomcat server")
private AccessMethod accessMethod
tomcatHome
@ConfigurationItemProperty(required=true,
label="Tomcat installation location",
description="Place where Tomcat is installed such as /opt/apache-tomcat-6.0.24.",
size=LARGE)
private java.lang.String tomcatHome
stopCommand
@ConfigurationItemProperty(required=false,
label="Tomcat stop command",
description="Command that should be executed to stop the Tomcat server, e.g. /opt/tomat/bin/catalina.sh stop",
size=LARGE)
private java.lang.String stopCommand
startCommand
@ConfigurationItemProperty(required=false,
label="Tomcat start command",
description="Command that should be executed to start the Tomcat server, e.g./opt/tomcat/bin/catalina.sh start.",
size=LARGE)
private java.lang.String startCommand
managerAppContext
@ConfigurationItemProperty(required=false,
label="Manager application context",
description="relative context path for tomcat manager application, e.g. /manager",
size=DEFAULT)
private java.lang.String managerAppContext
managerUsername
@ConfigurationItemProperty(required=false,
label="Tomcat manager username",
description="Username to be used for the manager application deployed on tomcat",
size=DEFAULT)
private java.lang.String managerUsername
managerPassword
@ConfigurationItemProperty(required=false,
label="Tomcat manager password",
description="Password to be used for the manager application deployed on tomcat",
size=DEFAULT,
password=true)
private java.lang.String managerPassword
appBase
@ConfigurationItemProperty(required=false,
description="absolute path of the directory where wars are deployed",
size=DEFAULT)
private java.lang.String appBase
TomcatServer
public TomcatServer()
connectToAdminHost
public com.xebialabs.deployit.hostsession.HostSession connectToAdminHost()
getDeployDirPath
public java.lang.String getDeployDirPath()
getContextWithoutVirtualHostDirPath
public java.lang.String getContextWithoutVirtualHostDirPath()
getContextWithVirtualHostDirPath
public java.lang.String getContextWithVirtualHostDirPath(java.lang.String virtualHostName)
getHost
public com.xebialabs.deployit.ci.Host getHost()
setHost
public void setHost(com.xebialabs.deployit.ci.Host host)
getStopCommand
public java.lang.String getStopCommand()
setStopCommand
public void setStopCommand(java.lang.String stopCommand)
getStartCommand
public java.lang.String getStartCommand()
isReachable
public boolean isReachable()
isStartStopCommandAvailable
public boolean isStartStopCommandAvailable()
isManagerAppAvailable
public boolean isManagerAppAvailable()
setStartCommand
public void setStartCommand(java.lang.String startCommand)
getTomcatHome
public java.lang.String getTomcatHome()
setTomcatHome
public void setTomcatHome(java.lang.String tomcatHome)
getPort
public int getPort()
setPort
public void setPort(int port)
getManagerUsername
public java.lang.String getManagerUsername()
setManagerUsername
public void setManagerUsername(java.lang.String managerUsername)
getManagerPassword
public java.lang.String getManagerPassword()
setManagerPassword
public void setManagerPassword(java.lang.String managerPassword)
getAccessMethod
public AccessMethod getAccessMethod()
setAccessMethod
public void setAccessMethod(AccessMethod accessMethod)
getManagerAppContext
public java.lang.String getManagerAppContext()
setManagerAppContext
public void setManagerAppContext(java.lang.String managerAppContext)
getAppBase
public java.lang.String getAppBase()
setAppBase
public void setAppBase(java.lang.String appBase)
Copyright © 2010. All Rights Reserved.