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_OPTS
CHECK_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 |
preInstall()
Implement this method in child classes to add some pre-install behavior
|
void |
stop()
Performs software stop (or queues tasks to do this)
|
deploy, deploy, deploy, getEnabledProtocols, getFilenameContextMapper, getHttpPort, getHttpsPort, getHttpsSslConfig, postLaunch, undeploy
checkJavaHostnameBug, copyRuntimeResources, getJavaOpts, getJmxContext, getJmxPort, getRmiRegistryPort, getShellEnvironment, installJava, installJmxSupport, isJmxEnabled, isJmxSslEnabled, setup
checkNoHostnameBug, copyInstallResources, copyResource, copyResource, execute, execute, execute, getAddress, getExpandedInstallDir, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getSubnetAddress, getSubnetHostname, runPostInstallCommand, runPostLaunchCommand, runPreInstallCommand, runPreLaunchCommand, setExpandedInstallDir
copyPreInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyTemplate, copyTemplate, copyTemplate, getResource, getResourceAsString, getVersion, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, start
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deploy, deploy, deploy, getEnabledProtocols, getFilenameContextMapper, getHttpPort, getHttpsPort, getHttpsSslConfig, undeploy
isJmxEnabled
rebind, restart, start
getLocation
public 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()
SoftwareProcessDriver
getEntity
in interface SoftwareProcessDriver
getEntity
in interface EntityDriver
getEntity
in class JavaWebAppSshDriver
public java.lang.String getSslKeystoreFile()
JBoss7Driver
getSslKeystoreFile
in interface JBoss7Driver
public void preInstall()
AbstractSoftwareProcessDriver
preInstall
in class AbstractSoftwareProcessDriver
public void install()
install
in class AbstractSoftwareProcessDriver
public void customize()
customize
in class AbstractSoftwareProcessDriver
public void launch()
launch
in class AbstractSoftwareProcessDriver
public boolean isRunning()
SoftwareProcessDriver
isRunning
in interface SoftwareProcessDriver
public void stop()
SoftwareProcessDriver
stop
in interface SoftwareProcessDriver
stop
in class AbstractSoftwareProcessDriver
Startable.stop()
public void kill()
SoftwareProcessDriver
kill
in interface SoftwareProcessDriver
kill
in class AbstractSoftwareProcessDriver
public 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))