com.xebialabs.deployit.plugin.was.ci
Class WasCell

java.lang.Object
  extended by com.xebialabs.deployit.BaseConfigurationItem
      extended by com.xebialabs.deployit.plugin.was.ci.WasCell
All Implemented Interfaces:
java.io.Serializable

@ConfigurationItem(category="middleware",
                   description="A WebSphere Application Server cell. Is a member of Host on which the deployment manager runs.",
                   expandable=true)
public class WasCell
extends com.xebialabs.deployit.BaseConfigurationItem

See Also:
Serialized Form

Nested Class Summary
static class WasCell.WsadminDaemonExecution
           
 
Field Summary
private static java.lang.String CONFIG_DIR_NAME
           
private static java.lang.String DAEMON_END_OF_COMMAND_MARKER
           
private static java.lang.String DAEMON_EXIT_CODE_MARKER
           
private static java.lang.String DAEMON_STARTED
           
static java.lang.String DISABLE_DAEMON
          The system property to set to disable the usage of the wsadmin daemon.
private  com.xebialabs.deployit.ci.Host host
           
private static org.apache.log4j.Logger logger
           
private  java.lang.String name
           
private  java.lang.String password
           
private static java.lang.String PLUGIN_FILENAME
           
private  java.lang.String username
           
private  WasVersion version
           
private  java.lang.String wasHome
           
 
Fields inherited from class com.xebialabs.deployit.BaseConfigurationItem
label
 
Constructor Summary
WasCell()
           
 
Method Summary
 com.xebialabs.deployit.hostsession.HostSession connectToAdminHost()
           
 int executeWsadminJythonScript(com.xebialabs.deployit.StepExecutionContext ctx, com.xebialabs.deployit.hostsession.HostSession cellHostSession, java.lang.String scriptPath, java.lang.String... args)
           
 int executeWsadminJythonScriptDirectly(com.xebialabs.deployit.hostsession.CommandExecutionCallbackHandler handler, com.xebialabs.deployit.hostsession.HostSession s, java.lang.String scriptPath, java.lang.String... args)
           
 int executeWsadminJythonScriptWithDaemon(com.xebialabs.deployit.StepExecutionContext ctx, com.xebialabs.deployit.hostsession.HostSession cellHostSession, java.lang.String scriptPath, java.lang.String... args)
           
 java.lang.String getConfigDirPath()
           
 com.xebialabs.deployit.ci.Host getHost()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.lang.String getPluginFilePath()
           
 java.lang.String getUsername()
           
 WasVersion getVersion()
           
 java.lang.String getWasHome()
           
private  com.xebialabs.deployit.hostsession.CommandExecution getWsadminDaemonCommandExecution(com.xebialabs.deployit.StepExecutionContext context)
           
 java.lang.String getWsadminPath()
           
 void setHost(com.xebialabs.deployit.ci.Host host)
           
 void setName(java.lang.String name)
           
 void setPassword(java.lang.String password)
           
 void setUsername(java.lang.String username)
           
 void setVersion(WasVersion version)
           
 void setWasHome(java.lang.String wasHome)
           
 
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
 

Field Detail

DISABLE_DAEMON

public static final java.lang.String DISABLE_DAEMON
The system property to set to disable the usage of the wsadmin daemon.

See Also:
Constant Field Values

DAEMON_STARTED

private static final java.lang.String DAEMON_STARTED
See Also:
Constant Field Values

DAEMON_EXIT_CODE_MARKER

private static final java.lang.String DAEMON_EXIT_CODE_MARKER
See Also:
Constant Field Values

DAEMON_END_OF_COMMAND_MARKER

private static final java.lang.String DAEMON_END_OF_COMMAND_MARKER
See Also:
Constant Field Values

CONFIG_DIR_NAME

private static final java.lang.String CONFIG_DIR_NAME
See Also:
Constant Field Values

PLUGIN_FILENAME

private static final java.lang.String PLUGIN_FILENAME
See Also:
Constant Field Values

host

@ConfigurationItemProperty
private com.xebialabs.deployit.ci.Host host

name

@ConfigurationItemProperty(required=true,
                           label="WebSphere name",
                           description="Name of the WebSphere cell, e.g. MyCell, WASCell, Cell01")
private java.lang.String name

username

@ConfigurationItemProperty(required=false,
                           label="Administrative username",
                           description="Username which is used to login to the WebSphere Cell.")
private java.lang.String username

password

@ConfigurationItemProperty(required=false,
                           label="Administrative password",
                           description="Password which is used to login to the WebSphere Cell.",
                           password=true)
private java.lang.String password

wasHome

@ConfigurationItemProperty(required=true,
                           label="Deployment manager profile path",
                           description="Path of the WebSphere deployment manager profile.",
                           size=LARGE)
private java.lang.String wasHome

version

@ConfigurationItemProperty(required=true,
                           label="WAS version",
                           description="Version of WebSphere Application Server.")
private WasVersion version

logger

private static org.apache.log4j.Logger logger
Constructor Detail

WasCell

public WasCell()
Method Detail

getWsadminPath

public java.lang.String getWsadminPath()

getConfigDirPath

public java.lang.String getConfigDirPath()

getPluginFilePath

public java.lang.String getPluginFilePath()

connectToAdminHost

public com.xebialabs.deployit.hostsession.HostSession connectToAdminHost()

executeWsadminJythonScript

public int executeWsadminJythonScript(com.xebialabs.deployit.StepExecutionContext ctx,
                                      com.xebialabs.deployit.hostsession.HostSession cellHostSession,
                                      java.lang.String scriptPath,
                                      java.lang.String... args)

executeWsadminJythonScriptWithDaemon

public int executeWsadminJythonScriptWithDaemon(com.xebialabs.deployit.StepExecutionContext ctx,
                                                com.xebialabs.deployit.hostsession.HostSession cellHostSession,
                                                java.lang.String scriptPath,
                                                java.lang.String... args)

getWsadminDaemonCommandExecution

private com.xebialabs.deployit.hostsession.CommandExecution getWsadminDaemonCommandExecution(com.xebialabs.deployit.StepExecutionContext context)

executeWsadminJythonScriptDirectly

public int executeWsadminJythonScriptDirectly(com.xebialabs.deployit.hostsession.CommandExecutionCallbackHandler handler,
                                              com.xebialabs.deployit.hostsession.HostSession s,
                                              java.lang.String scriptPath,
                                              java.lang.String... args)

getHost

public com.xebialabs.deployit.ci.Host getHost()

setHost

public void setHost(com.xebialabs.deployit.ci.Host host)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getWasHome

public java.lang.String getWasHome()

setWasHome

public void setWasHome(java.lang.String wasHome)

getVersion

public WasVersion getVersion()

setVersion

public void setVersion(WasVersion version)


Copyright © 2010. All Rights Reserved.