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()  | 
checkNoHostnameBug, copyInstallResources, copyResource, copyResource, execute, execute, execute, getAddress, getExpandedInstallDir, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getSubnetAddress, getSubnetHostname, runPostInstallCommand, runPostLaunchCommand, runPreInstallCommand, runPreLaunchCommand, setExpandedInstallDircopyPreInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyTemplate, copyTemplate, copyTemplate, customize, getEntity, getResource, getResourceAsString, getVersion, install, kill, launch, postLaunch, preInstall, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, start, stopequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntity, isRunning, kill, rebind, restart, start, stopgetLocationpublic 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 JavaSoftwareProcessDriverpublic 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 AbstractSoftwareProcessSshDriverSoftwareProcess.SHELL_ENVIRONMENTpublic 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()
setup in class AbstractSoftwareProcessSshDriverpublic void copyRuntimeResources()
AbstractSoftwareProcessDriverAbstractSoftwareProcessDriver.customize() process.
 
 Will be prefixed with the entity's run directory if relative.