|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.basic.AbstractSoftwareProcessDriver
brooklyn.entity.basic.AbstractSoftwareProcessSshDriver
brooklyn.entity.java.JavaSoftwareProcessSshDriver
public abstract class JavaSoftwareProcessSshDriver extends AbstractSoftwareProcessSshDriver
The SSH implementation of the JavaSoftwareProcessDriver.
Field Summary | |
---|---|
static java.util.List |
KEY_VAL_OPT_PREFIXES
|
static java.util.List |
MUTUALLY_EXCLUSIVE_OPTS
|
static Logger |
log
|
Fields inherited from class AbstractSoftwareProcessSshDriver | |
---|---|
BROOKLYN_HOME_DIR, CHECK_RUNNING, CUSTOMIZING, DEFAULT_INSTALL_BASEDIR, DEFAULT_RUN_BASEDIR, INSTALLING, KILLING, LAUNCHING, NO_VERSION_INFO, PID_FILENAME, RESTARTING, STOPPING, log, logSsh |
Fields inherited from class AbstractSoftwareProcessDriver | |
---|---|
entity |
Constructor Summary | |
JavaSoftwareProcessSshDriver(EntityLocal entity, SshMachineLocation machine)
|
Method Summary | |
---|---|
protected java.util.List
|
getCustomJavaConfigOptions()
Return extra Java config options, ie arguments starting with - which are passed to the JVM prior to the class name. |
protected java.util.Map
|
getCustomJavaSystemProperties()
Return extra Java system properties (-D defines) used by the application. |
java.util.List
|
getJavaOpts()
arguments to pass to the JVM; this is the config options (e.g. |
protected java.util.Map
|
getJavaSystemProperties()
Returns the complete set of Java system properties (-D defines) to set for the application. |
java.lang.String
|
getJmxContext()
|
protected java.util.Map
|
getJmxJavaSystemProperties()
Return the configuration properties required to enable JMX for a Java application. |
java.lang.Integer
|
getJmxPort()
|
protected java.lang.String
|
getLogFileLocation()
|
java.lang.Integer
|
getRmiPort()
|
java.lang.Integer
|
getRmiServerPort()
|
java.util.Map
|
getShellEnvironment()
Sets all JVM options (-X.. |
void
|
installJava()
|
boolean
|
isJmxEnabled()
|
void
|
start()
|
Methods inherited from class AbstractSoftwareProcessSshDriver | |
---|---|
copyFile, copyFile, execute, execute, getDefaultVersion, getEntityVersionLabel, getEntityVersionLabel, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getShellEnvironment, getVersion, newScript, newScript |
Methods inherited from class AbstractSoftwareProcessDriver | |
---|---|
customize, getEntity, getLocation, getResource, install, kill, launch, postLaunch, restart, start, stop, waitForConfigKey |
Field Detail |
---|
public static final java.util.List KEY_VAL_OPT_PREFIXES
public static final java.util.List MUTUALLY_EXCLUSIVE_OPTS
public static final Logger log
Constructor Detail |
---|
public JavaSoftwareProcessSshDriver(EntityLocal entity, SshMachineLocation machine)
Method Detail |
---|
protected java.util.List getCustomJavaConfigOptions()
Note defines are handled separately, in getCustomJavaSystemProperties().
Override as needed; default is an empty list.
protected java.util.Map getCustomJavaSystemProperties()
public java.util.List getJavaOpts()
See getShellEnvironment() for discussion of quoting/escaping strategy.
protected java.util.Map getJavaSystemProperties()
This is exposed to the JVM as the contents of the JAVA_OPTS environment variable. Default set contains config key, custom system properties, and JMX defines.
Null value means to set -Dkey otherwise it is -Dkey=value.
See getShellEnvironment() for discussion of quoting/escaping strategy.
@Override public java.lang.String getJmxContext()
protected java.util.Map getJmxJavaSystemProperties()
@Override public java.lang.Integer getJmxPort()
protected java.lang.String getLogFileLocation()
@Deprecated // since 0.4, use getRmiServerPort @Override public java.lang.Integer getRmiPort()
public java.lang.Integer getRmiServerPort()
@Override public java.util.Map 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 BashStringEscapes#escapeLiteralForDoubleQuotedBash(String)#escapeLiteralForDoubleQuotedBash(String).
public void installJava()
public boolean isJmxEnabled()
@Override public void start()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.