Brooklyn

brooklyn.entity.webapp.jboss
[Java] Class JBoss7SshDriver

java.lang.Object
  brooklyn.entity.basic.AbstractSoftwareProcessDriver
      brooklyn.entity.basic.AbstractSoftwareProcessSshDriver
          brooklyn.entity.java.JavaSoftwareProcessSshDriver
              brooklyn.entity.webapp.JavaWebAppSshDriver
                  brooklyn.entity.webapp.jboss.JBoss7SshDriver
All Implemented Interfaces:
JBoss7Driver

public class JBoss7SshDriver
extends JavaWebAppSshDriver

Field Summary
static java.lang.String SERVER_TYPE

 
Fields inherited from class JavaSoftwareProcessSshDriver
KEY_VAL_OPT_PREFIXES, MUTUALLY_EXCLUSIVE_OPTS, log
 
Fields inherited from class AbstractSoftwareProcessSshDriver
BROOKLYN_HOME_DIR, CHECK_RUNNING, CUSTOMIZING, DEFAULT_INSTALL_BASEDIR, DEFAULT_RUN_BASEDIR, IGNORE_ENTITY_SSH_FLAGS, INSTALLING, KILLING, LAUNCHING, NO_VERSION_INFO, PID_FILENAME, RESTARTING, STOPPING, USE_PID_FILE, log, logSsh
 
Fields inherited from class AbstractSoftwareProcessDriver
entity
 
Constructor Summary
JBoss7SshDriver(JBoss7ServerImpl entity, SshMachineLocation machine)

 
Method Summary
void customize()

AS7 config notes and TODOs: We're using the http management interface on port managementPort We're not using any JMX

protected java.util.List getCustomJavaConfigOptions()

protected java.lang.String getDeploySubdir()

JBoss7ServerImpl getEntity()

protected java.lang.String getLogFileLocation()

java.lang.String getSslKeystoreFile()

protected java.lang.String getTemplateConfigurationUrl()

void install()

boolean isRunning()

void kill()

void launch()

void stop()

 
Methods inherited from class JavaWebAppSshDriver
deploy, deploy, deploy, getDeployDir, getDeploySubdir, getEnabledProtocols, getEntity, getFilenameContextMapper, getHttpPort, getHttpsPort, getHttpsSslConfig, getSslKeyAlias, getSslKeystorePassword, getSslKeystoreUrl, inferRootUrl, isProtocolEnabled, postLaunch, undeploy
 
Methods inherited from class JavaSoftwareProcessSshDriver
getCustomJavaConfigOptions, getCustomJavaSystemProperties, getJavaOpts, getJavaSystemProperties, getJmxContext, getJmxJavaConfigOptions, getJmxJavaSystemProperties, getJmxPort, getJmxSslSupport, getLogFileLocation, getRmiPort, getRmiServerPort, getShellEnvironment, installJava, installJmxSupport, isJmxEnabled, isJmxSslEnabled, start
 
Methods inherited from class AbstractSoftwareProcessSshDriver
copyFile, copyFile, copyFile, copyResource, copyResource, copyResource, copyResources, copyTemplate, copyTemplate, copyTemplates, execute, execute, getAddress, getDefaultVersion, getDownloadFileSuffix, getDownloadFilename, getEntityVersionLabel, getEntityVersionLabel, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getShellEnvironment, getSshFlags, getVersion, newScript, newScript
 
Methods inherited from class AbstractSoftwareProcessDriver
customize, getEntity, getLocation, getResource, getResourceAsString, install, kill, launch, postLaunch, processTemplate, processTemplate, rebind, restart, start, stop, waitForConfigKey
 

Field Detail

SERVER_TYPE

public static final java.lang.String SERVER_TYPE


 
Constructor Detail

JBoss7SshDriver

public JBoss7SshDriver(JBoss7ServerImpl entity, SshMachineLocation machine)


 
Method Detail

customize

@Override
public void customize()
AS7 config notes and TODOs: We're using the http management interface on port managementPort We're not using any JMX. - AS 7 simply doesn't boot with Sun JMX enabled (https://issues.jboss.org/browse/JBAS-7427) - 7.1 onwards uses Remoting 3, which we haven't configured - We have generic support for jmxmp, which one could configure We're completely disabling security on the management interface. - In the future we probably want to use the as7/bin/add-user.sh script using config keys for user and password - Or we could create our own security realm and use that. We disable the root welcome page, since we can't deploy our own root otherwise We bind all interfaces to entity.hostname, rather than 127.0.0.1.


getCustomJavaConfigOptions

@Override
protected java.util.List getCustomJavaConfigOptions()


getDeploySubdir

protected java.lang.String getDeploySubdir()


getEntity

@Override
public JBoss7ServerImpl getEntity()


getLogFileLocation

protected java.lang.String getLogFileLocation()


getSslKeystoreFile

@Override
public java.lang.String getSslKeystoreFile()


getTemplateConfigurationUrl

protected java.lang.String getTemplateConfigurationUrl()


install

public void install()


isRunning

@Override
public boolean isRunning()


kill

@Override
public void kill()


launch

@Override
public void launch()


stop

@Override
public void stop()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.