private void dumpConfiguration() { System.out.println("-------------------------------------------"); System.out.println("Configuration for container " + this); System.out.println("-------------------------------------------"); LocalConfiguration configuration = getConfiguration(); System.out.format("Name: %s%n", configuration); System.out.format("Class: %s%n", configuration.getClass()); System.out.println("Properties:"); configuration.getProperties().entrySet().forEach(System.out::println); System.out.println("-------------------------------------------"); System.out.println(""); }
/** * {@inheritDoc} */ @Override protected void executePostStartTasks() throws Exception { Map<String, String> properties = getConfiguration().getProperties(); // Execute online CLI scripts for (Map.Entry<String, String> property : properties.entrySet()) { String propertyName = property.getKey(); if (propertyName.startsWith(JBossPropertySet.CLI_ONLINE_SCRIPT)) { String scriptPath = property.getValue(); executeScriptFiles(Arrays.asList(scriptPath)); } } }
/** * {@inheritDoc} */ @Override protected void executePostStartTasks() throws Exception { Map<String, String> properties = getConfiguration().getProperties(); // Execute online CLI scripts for (Map.Entry<String, String> property : properties.entrySet()) { String propertyName = property.getKey(); if (propertyName.startsWith(JBossPropertySet.CLI_ONLINE_SCRIPT)) { String scriptPath = property.getValue(); executeScriptFiles(Arrays.asList(scriptPath)); } } }
/** * Setup configuration properties. * * @param configuration The configuration * @return The configuration properties list */ private String setupConfigurationProperties(LocalConfiguration configuration) { StringBuilder propertiesJSON = new StringBuilder(); Map<String, String> properties = configuration.getProperties(); int i = 0; propertiesJSON.append("{"); for (Map.Entry<String, String> entry : properties.entrySet()) { if (i != 0) { propertiesJSON.append(","); } propertiesJSON.append("\"" + escapeJson(entry.getKey()) + "\":\"" + escapeJson(entry.getValue()) + "\""); i++; } propertiesJSON.append("}"); return propertiesJSON.toString(); }
/** * Setup configuration properties. * * @param configuration The configuration * @return The configuration properties list */ private String setupConfigurationProperties(LocalConfiguration configuration) { StringBuilder propertiesJSON = new StringBuilder(); Map<String, String> properties = configuration.getProperties(); int i = 0; propertiesJSON.append("{"); for (Map.Entry<String, String> entry : properties.entrySet()) { if (i != 0) { propertiesJSON.append(","); } propertiesJSON.append("\"" + escapeJson(entry.getKey()) + "\":\"" + escapeJson(entry.getValue()) + "\""); i++; } propertiesJSON.append("}"); return propertiesJSON.toString(); }
for (Map.Entry<String, String> property : getConfiguration().getProperties().entrySet())
/** * {@inheritDoc}. CARGO-1255: Remove the JVM arguments from the asadmin, else debugging and * potentially many other functions do work. */ @Override protected void stopInternal() throws Exception { synchronized (this.getConfiguration()) { String jvmArguments = this.getConfiguration().getPropertyValue(GeneralPropertySet.JVMARGS); try { this.getConfiguration().getProperties().remove(GeneralPropertySet.JVMARGS); super.stopInternal(); } finally { if (jvmArguments != null) { this.getConfiguration().setProperty(GeneralPropertySet.JVMARGS, jvmArguments); } } } }
/** * {@inheritDoc}. CARGO-1255: Remove the JVM arguments from the asadmin, else debugging and * potentially many other functions do work. */ @Override protected void stopInternal() throws Exception { synchronized (this.getConfiguration()) { String jvmArguments = this.getConfiguration().getPropertyValue(GeneralPropertySet.JVMARGS); try { this.getConfiguration().getProperties().remove(GeneralPropertySet.JVMARGS); super.stopInternal(); } finally { if (jvmArguments != null) { this.getConfiguration().setProperty(GeneralPropertySet.JVMARGS, jvmArguments); } } } }
/** * {@inheritDoc}. CARGO-1255: Remove the JVM arguments from the asadmin, else debugging and * potentially many other functions do work. */ @Override protected void startInternal() throws Exception { synchronized (this.getConfiguration()) { String jvmArguments = this.getConfiguration().getPropertyValue(GeneralPropertySet.JVMARGS); try { this.getConfiguration().getProperties().remove(GeneralPropertySet.JVMARGS); super.startInternal(); } finally { if (jvmArguments != null) { this.getConfiguration().setProperty(GeneralPropertySet.JVMARGS, jvmArguments); } } } }
/** * {@inheritDoc}. CARGO-1255: Remove the JVM arguments from the asadmin, else debugging and * potentially many other functions do work. */ @Override protected void startInternal() throws Exception { synchronized (this.getConfiguration()) { String jvmArguments = this.getConfiguration().getPropertyValue(GeneralPropertySet.JVMARGS); try { this.getConfiguration().getProperties().remove(GeneralPropertySet.JVMARGS); super.startInternal(); } finally { if (jvmArguments != null) { this.getConfiguration().setProperty(GeneralPropertySet.JVMARGS, jvmArguments); } } } }
cargoConfig.getProperties().putAll(props);
: getConfiguration().getProperties().entrySet())