@Override protected Map getCustomJavaSystemProperties() { VanillaJavaApp entity = getEntity(); Map result = new HashMap(); result.putAll(super.getCustomJavaSystemProperties()); result.putAll(entity.getJvmDefines()); return result; }
@Override protected Map getCustomJavaSystemProperties() { return MutableMap.<String, String>builder() .putAll(super.getCustomJavaSystemProperties()) .put("cassandra.confing", getCassandraConfigFileName()) .build(); }
/** * Returns the complete set of Java system properties (-D defines) to set for the application. * <p> * This is exposed to the JVM as the contents of the {@code JAVA_OPTS} environment variable. Default * set contains config key, custom system properties, and JMX defines. * <p> * Null value means to set -Dkey otherwise it is -Dkey=value. * <p> * See {@link #getShellEnvironment()} for discussion of quoting/escaping strategy. */ protected Map<String,?> getJavaSystemProperties() { return MutableMap.<String,Object>builder() .putAll(getCustomJavaSystemProperties()) .putAll(isJmxEnabled() ? getJmxJavaSystemProperties() : Collections.<String,Object>emptyMap()) .putAll(entity.getConfig(UsesJava.JAVA_SYSPROPS)) .build(); }
public Map<String, Object> getCustomJavaSystemProperties() { return MutableMap.<String, Object>builder() .putAll(super.getCustomJavaSystemProperties()) .put("connector.port", getAmqpPort()) .put("management.enabled", "true") .put("management.jmxport.registryServer", getRmiRegistryPort()) .put("management.jmxport.connectorServer", getJmxPort()) .put("management.http.enabled", getHttpManagementPort() != null ? "true" : "false") .putIfNotNull("management.http.port", getHttpManagementPort()) .build(); }