jmxAgentMode = JmxAgentModes.JMXMP; if (!ResourceUtils.create(this).doesUrlExist(getJmxAgentJarUrl())) { log.warn("JMX agent JAR not found ("+getJmxAgentJarUrl()+") when auto-detecting JMX settings for "+entity+"; " + "likely cause is an incomplete build (e.g. from Eclipse; run a maven build then retry in the IDE); "+ "reverting to NONE (use built-in Java JMX support, which will not go through firewalls)");
/** installs files needed for JMX, to the runDir given in constructor, assuming the runDir has been created */ public void install() { if (getJmxAgentMode()!=JmxAgentModes.NONE) { getMachine().get().copyTo(ResourceUtils.create(this).getResourceFromUrl( getJmxAgentJarUrl()), getJmxAgentJarDestinationFilePath()); } if (isSecure()) { getJmxSslSupport().install(); } }