public abstract class JavaSoftwareProcessSshDriver extends AbstractSoftwareProcessSshDriver implements JavaSoftwareProcessDriver
JavaSoftwareProcessDriver
.Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
KEY_VAL_OPT_PREFIXES |
static org.slf4j.Logger |
log |
static java.util.List<java.util.List<java.lang.String>> |
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 |
---|
JavaSoftwareProcessSshDriver(EntityLocal entity,
SshMachineLocation machine) |
Modifier and Type | Method and Description |
---|---|
void |
checkJavaHostnameBug() |
void |
copyRuntimeResources()
Files and templates to be copied to the server after customisation.
|
java.util.List<java.lang.String> |
getJavaOpts()
arguments to pass to the JVM; this is the config options (e.g.
|
java.lang.String |
getJmxContext()
Deprecated.
since 0.6.0, the config key is always used instead of this
|
java.lang.Integer |
getJmxPort()
Deprecated.
since 0.6.0, the config key is always used instead of this
|
java.lang.Integer |
getRmiRegistryPort()
Deprecated.
since 0.6.0, the config key is always used instead of this
|
java.util.Map<java.lang.String,java.lang.String> |
getShellEnvironment()
Sets all JVM options (-X..
|
boolean |
installJava()
Checks for Java 6 or 7, installing Java 7 if neither are found.
|
void |
installJmxSupport() |
boolean |
isJmxEnabled() |
boolean |
isJmxSslEnabled() |
void |
setup()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
checkNoHostnameBug, copyCustomizeResources, copyInstallResources, copyPreInstallResources, copyResource, copyResource, execute, execute, execute, getAddress, getHostname, getLocation, getMachine, getPortsUsed, getSubnetAddress, getSubnetHostname, prepare, runPostCustomizeCommand, runPostInstallCommand, runPostLaunchCommand, runPreCustomizeCommand, runPreInstallCommand, runPreLaunchCommand
copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyTemplate, copyTemplate, copyTemplate, customize, getArchiveNameFormat, getEntity, getExpandedInstallDir, getInstallDir, getResource, getResourceAsString, getRunDir, getVersion, install, kill, launch, postLaunch, preInstall, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, setExpandedInstallDir, start, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntity, isRunning, kill, rebind, restart, start, stop
getLocation
public static final org.slf4j.Logger log
public static final java.util.List<java.util.List<java.lang.String>> MUTUALLY_EXCLUSIVE_OPTS
public static final java.util.List<java.lang.String> KEY_VAL_OPT_PREFIXES
public JavaSoftwareProcessSshDriver(EntityLocal entity, SshMachineLocation machine)
public boolean isJmxEnabled()
isJmxEnabled
in interface JavaSoftwareProcessDriver
public boolean isJmxSslEnabled()
public java.util.Map<java.lang.String,java.lang.String> getShellEnvironment()
That variable is constructed from getJavaOpts()
, then wrapped _unescaped_ in double quotes. An
error is thrown if there is an unescaped double quote in the string. All other unescaped
characters are permitted, but unless $var expansion or `command` execution is desired (although
this is not confirmed as supported) the generally caller should escape any such characters, for
example using StringEscapes.BashStringEscapes.escapeLiteralForDoubleQuotedBash(String)
.
getShellEnvironment
in class AbstractSoftwareProcessDriver
SoftwareProcess.SHELL_ENVIRONMENT
public java.util.List<java.lang.String> getJavaOpts()
getCustomJavaConfigOptions()
by default) and java system properties (-Dk=v; add custom
properties in getCustomJavaSystemProperties()
)
See getShellEnvironment()
for discussion of quoting/escaping strategy.
@Deprecated public java.lang.Integer getJmxPort()
@Deprecated public java.lang.Integer getRmiRegistryPort()
@Deprecated public java.lang.String getJmxContext()
public boolean installJava()
checkForAndInstallJava(String)
public void installJmxSupport()
public void checkJavaHostnameBug()
public void setup()
AbstractSoftwareProcessDriver
setup
in class AbstractSoftwareProcessSshDriver
public void copyRuntimeResources()
AbstractSoftwareProcessDriver
AbstractSoftwareProcessDriver.customize()
process.
Will be prefixed with the entity's run directory
if relative.