UsesJmx.JmxAgentModesDEFAULT_JMX_PORT, JMX_AGENT_MODE, JMX_CONTEXT, JMX_PASSWORD, JMX_PORT, JMX_SSL_ACCESS_CERT, JMX_SSL_ACCESS_KEY, JMX_SSL_ENABLED, JMX_URL, JMX_USER, RMI_REGISTRY_PORT, USE_JMXCHECK_JAVA_HOSTNAME_BUG, JAVA_OPTS, JAVA_SYSPROPS| Constructor and Description | 
|---|
| JmxSupport(Entity entity,
          java.lang.String runDir)run dir may be null if it is not accessed | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applyJmxJavaSystemProperties(MutableMap.Builder<java.lang.String,java.lang.Object> result)applies _some_ of the common settings needed to connect via JMX | 
| Entity | getEntity() | 
| java.lang.String | getJmxAgentJarBasename()Deprecated. 
 since 0.6.0; use  getJmxAgentJarMavenArtifact() | 
| java.lang.String | getJmxAgentJarDestinationFilePath() | 
| MavenArtifact | getJmxAgentJarMavenArtifact() | 
| java.lang.String | getJmxAgentJarUrl()returns URL for accessing the java agent, throwing if not applicable;
 prefers on classpath where it should be, but will fall back to taking from maven hosted
 (known problem in Eclipse where JARs are not always copied) | 
| UsesJmx.JmxAgentModes | getJmxAgentMode() | 
| java.util.List<java.lang.String> | getJmxJavaConfigOptions() | 
| java.lang.String | getJmxUrl() | 
| Maybe<SshMachineLocation> | getMachine() | 
| java.lang.String | getRunDir() | 
| void | install()installs files needed for JMX, to the runDir given in constructor, assuming the runDir has been created | 
| boolean | isJmx() | 
| boolean | isSecure() | 
| void | recommendJmxRmiCustomAgent()sets JMR_RMI_CUSTOM_AGENT as the connection mode for the indicated apps. | 
| void | setJmxUrl() | 
public JmxSupport(Entity entity, @Nullable java.lang.String runDir)
@Nonnull public java.lang.String getRunDir()
public Entity getEntity()
public Maybe<SshMachineLocation> getMachine()
public boolean isJmx()
public UsesJmx.JmxAgentModes getJmxAgentMode()
public boolean isSecure()
public void setJmxUrl()
public java.lang.String getJmxUrl()
public java.util.List<java.lang.String> getJmxJavaConfigOptions()
public java.lang.String getJmxAgentJarDestinationFilePath()
@Nullable public MavenArtifact getJmxAgentJarMavenArtifact()
@Deprecated public java.lang.String getJmxAgentJarBasename()
getJmxAgentJarMavenArtifact()public java.lang.String getJmxAgentJarUrl()
public void applyJmxJavaSystemProperties(MutableMap.Builder<java.lang.String,java.lang.Object> result)
public void install()
public void recommendJmxRmiCustomAgent()
TODO callers of this method have RMI dependencies in the actual app; we should look at removing them, so that those pieces of software can run behind forwarding public IP's and over SSL (both reasons JMXMP is preferred by us!)