public class JBoss7SshDriver extends JavaWebAppSshDriver implements JBoss7Driver
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_FILE |
static java.lang.String |
KEYSTORE_FILE |
static java.lang.String |
MANAGEMENT_REALM |
static java.lang.String |
SERVER_TYPE |
KEY_VAL_OPT_PREFIXES, log, MUTUALLY_EXCLUSIVE_OPTSCHECK_RUNNING, CUSTOMIZING, DEBUG, IGNORE_ENTITY_SSH_FLAGS, INSTALL_INCOMPLETE, INSTALLING, KILLING, LAUNCHING, logSsh, NON_STANDARD_LAYOUT, PID_FILENAME, PROCESS_OWNER, RESTARTING, STOPPING, USE_PID_FILE, VALID_FLAGS| Constructor and Description |
|---|
JBoss7SshDriver(JBoss7ServerImpl entity,
SshMachineLocation machine) |
| Modifier and Type | Method and Description |
|---|---|
void |
customize()
AS7 config notes and TODOs:
We're using the http management interface on port managementPort
We're not using any JMX.
|
JBoss7ServerImpl |
getEntity()
The entity whose components we are controlling.
|
java.lang.String |
getSslKeystoreFile()
The path to the keystore file on the AS7 server machine.
|
static java.lang.String |
hashPassword(java.lang.String username,
java.lang.String password,
java.lang.String realm)
Creates a hash of a username, password and security realm that is suitable for use
with AS7 and Wildfire.
|
void |
install() |
boolean |
isRunning()
Whether the entity components have started.
|
void |
kill()
Kills the process, ungracefully and immediately where possible (e.g.
|
void |
launch() |
void |
prepare()
Prepare the entity instance before running any commands.
|
void |
stop()
Performs software stop (or queues tasks to do this)
|
deploy, deploy, deploy, getEnabledProtocols, getFilenameContextMapper, getHttpPort, getHttpsPort, getHttpsSslConfig, postLaunch, undeploycheckJavaHostnameBug, copyRuntimeResources, getJavaOpts, getJmxContext, getJmxPort, getRmiRegistryPort, getShellEnvironment, installJava, installJmxSupport, isJmxEnabled, isJmxSslEnabled, setupcheckNoHostnameBug, copyInstallResources, copyResource, copyResource, execute, execute, execute, getAddress, getExpandedInstallDir, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getSubnetAddress, getSubnetHostname, runPostCustomizeCommand, runPostInstallCommand, runPostLaunchCommand, runPreCustomizeCommand, runPreInstallCommand, runPreLaunchCommand, setExpandedInstallDircopyPreInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyTemplate, copyTemplate, copyTemplate, getArchiveNameFormat, getResource, getResourceAsString, getVersion, preInstall, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, startequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeploy, deploy, deploy, getEnabledProtocols, getFilenameContextMapper, getHttpPort, getHttpsPort, getHttpsSslConfig, undeployisJmxEnabledrebind, restart, startgetLocationpublic static final java.lang.String SERVER_TYPE
public static final java.lang.String CONFIG_FILE
public static final java.lang.String KEYSTORE_FILE
public static final java.lang.String MANAGEMENT_REALM
public JBoss7SshDriver(JBoss7ServerImpl entity, SshMachineLocation machine)
public JBoss7ServerImpl getEntity()
SoftwareProcessDrivergetEntity in interface EntityDrivergetEntity in interface SoftwareProcessDrivergetEntity in class JavaWebAppSshDriverpublic java.lang.String getSslKeystoreFile()
JBoss7DrivergetSslKeystoreFile in interface JBoss7Driverpublic void prepare()
AbstractSoftwareProcessDriverAbstractSoftwareProcessDriver.start().prepare in class AbstractSoftwareProcessSshDriverpublic void install()
install in class AbstractSoftwareProcessDriverpublic void customize()
customize in class AbstractSoftwareProcessDriverpublic void launch()
launch in class AbstractSoftwareProcessDriverpublic boolean isRunning()
SoftwareProcessDriverisRunning in interface SoftwareProcessDriverpublic void stop()
SoftwareProcessDriverstop in interface SoftwareProcessDriverstop in class AbstractSoftwareProcessDriverStartable.stop()public void kill()
SoftwareProcessDriverkill in interface SoftwareProcessDriverkill in class AbstractSoftwareProcessDriverpublic static java.lang.String hashPassword(java.lang.String username,
java.lang.String password,
java.lang.String realm)
add-user.sh script it is unsuitable for use in
non-interactive modes. (See AS7-5061 for details.) Versions 7.1.2+ (EAP) accept
a --silent flag. When this entity is updated past 7.1.1 we should
probably use that instead.
This method mirrors AS7 and Wildfire's method of hashing user's passwords. Refer
to its class UsernamePasswordHashUtil.generateHashedURP for their
implementation.HEX(MD5(username ':' realm ':' password))