Tabnine Logo
JmxSupport.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
brooklyn.entity.java.JmxSupport
constructor

Best Java code snippets using brooklyn.entity.java.JmxSupport.<init> (Showing top 5 results out of 315)

origin: io.brooklyn/brooklyn-software-messaging

@Override
public void init() {
  super.init();
  new JmxSupport(this, null).recommendJmxRmiCustomAgent();
}
origin: io.brooklyn/brooklyn-software-base

/** constructs a JMX URL suitable for connecting to the given entity, being smart about JMX/RMI vs JMXMP */
public static String toJmxUrl(EntityLocal entity) {
  String url = entity.getAttribute(UsesJmx.JMX_URL);
  if (url != null) {
    return url;
  } else {
    new JmxSupport(entity, null).setJmxUrl();
    url = entity.getAttribute(UsesJmx.JMX_URL);
    return Preconditions.checkNotNull(url, "Could not find URL for "+entity);
  }
}
origin: io.brooklyn/brooklyn-software-base

/**
 * Return any JVM arguments required, other than the -D defines returned by {@link #getJmxJavaSystemProperties()}
 */
protected List<String> getJmxJavaConfigOptions() {
  List<String> result = new ArrayList<String>();
  if (isJmxEnabled()) {
    result.addAll(new JmxSupport(getEntity(), getRunDir()).getJmxJavaConfigOptions());
  }
  return result;
}
  
origin: io.brooklyn/brooklyn-software-base

public void installJmxSupport() {
  if (isJmxEnabled()) {
    newScript("JMX_SETUP_PREINSTALL").body.append("mkdir -p "+getRunDir()).execute();
    new JmxSupport(getEntity(), getRunDir()).install();
  }
}

origin: io.brooklyn/brooklyn-software-base

/**
 * Return the configuration properties required to enable JMX for a Java application.
 * 
 * These should be set as properties in the {@code JAVA_OPTS} environment variable when calling the
 * run script for the application.
 */
protected Map<String, ?> getJmxJavaSystemProperties() {
  MutableMap.Builder<String, Object> result = MutableMap.<String, Object> builder();
  
  if (isJmxEnabled()) {
    new JmxSupport(getEntity(), getRunDir()).applyJmxJavaSystemProperties(result);
  }
  
  return result.build();
}
brooklyn.entity.javaJmxSupport<init>

Javadoc

run dir may be null if it is not accessed

Popular methods of JmxSupport

  • applyJmxJavaSystemProperties
    applies _some_ of the common settings needed to connect via JMX
  • fixPortsForModeNone
    mode NONE cannot set a JMX (RMI server) port; it needs an RMI registry port, then gets redirected to
  • getConfig
  • getEntity
  • getJmxAgentJarBasename
  • getJmxAgentJarDestinationFilePath
  • getJmxAgentJarMavenArtifact
  • getJmxAgentJarUrl
    returns URL for accessing the java agent, throwing if not applicable; prefers on classpath where it
  • getJmxAgentMode
  • getJmxJavaConfigOptions
  • getJmxSslSupport
  • getJmxUrl
  • getJmxSslSupport,
  • getJmxUrl,
  • getMachine,
  • getRunDir,
  • init,
  • install,
  • isJmx,
  • isSecure,
  • recommendJmxRmiCustomAgent

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • String (java.lang)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now