Brooklyn

brooklyn.entity.java
[Java] Class JmxSupport

java.lang.Object
  brooklyn.entity.java.JmxSupport
All Implemented Interfaces:
UsesJmx

public class JmxSupport

Constructor Summary
JmxSupport(Entity entity, java.lang.String runDir)

run dir may be null if it is not accessed

 
Method Summary
void applyJmxJavaSystemProperties(Builder result)

applies _some_ of the common settings needed to connect via JMX

protected int fixPortsForModeNone()

mode NONE cannot set a JMX (RMI server) port; it needs an RMI registry port, then gets redirected to an anonymous RMI server port; both the hostname and the anonymous port must be accessible to use this mode (hence the use of the other agents in most cases)

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)

JmxAgentModes getJmxAgentMode()

java.util.List getJmxJavaConfigOptions()

protected JmxmpSslSupport getJmxSslSupport()

sets JMR_RMI_CUSTOM_AGENT as the connection mode for the indicated apps.

java.lang.String getJmxUrl()

Optional getMachine()

java.lang.String getRunDir()

protected void init()

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()

void setJmxUrl()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

JmxSupport

public JmxSupport(Entity entity, @Nullable java.lang.String runDir)
run dir may be null if it is not accessed


 
Method Detail

applyJmxJavaSystemProperties

public void applyJmxJavaSystemProperties(Builder result)
applies _some_ of the common settings needed to connect via JMX


fixPortsForModeNone

protected int fixPortsForModeNone()
mode NONE cannot set a JMX (RMI server) port; it needs an RMI registry port, then gets redirected to an anonymous RMI server port; both the hostname and the anonymous port must be accessible to use this mode (hence the use of the other agents in most cases)


getEntity

public Entity getEntity()


getJmxAgentJarBasename

}
public java.lang.String getJmxAgentJarBasename()
deprecated:
since 0.6.0; use getJmxAgentJarMavenArtifact()


getJmxAgentJarDestinationFilePath

public java.lang.String getJmxAgentJarDestinationFilePath()


getJmxAgentJarMavenArtifact

re
public MavenArtifact getJmxAgentJarMavenArtifact()


getJmxAgentJarUrl

public 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)


getJmxAgentMode

public JmxAgentModes getJmxAgentMode()


getJmxJavaConfigOptions

public java.util.List getJmxJavaConfigOptions()


getJmxSslSupport

protected JmxmpSslSupport getJmxSslSupport()
sets JMR_RMI_CUSTOM_AGENT as the connection mode for the indicated apps.

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!)


getJmxUrl

public java.lang.String getJmxUrl()


getMachine

public Optional getMachine()


getRunDir

@Nonnull
public java.lang.String getRunDir()


init

protected void init()


install

public void install()
installs files needed for JMX, to the runDir given in constructor, assuming the runDir has been created


isJmx

public boolean isJmx()


isSecure

public boolean isSecure()


recommendJmxRmiCustomAgent

public void recommendJmxRmiCustomAgent()


setJmxUrl

public void setJmxUrl()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.