systemProperty = File.pathSeparator; } else { systemProperty = WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(s); systemProperty = WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(input.substring(from + 2, dv)); defaultValue = input.substring(dv + 1, to);
private static boolean processProperties(final String arg, final String urlSpec, Map<String, String> hostSystemProperties) { URL url = null; try { url = makeURL(urlSpec); Properties props = new Properties(); props.load(url.openConnection().getInputStream()); WildFlySecurityManager.getSystemPropertiesPrivileged().putAll(props); for (Map.Entry<Object, Object> entry : props.entrySet()) { hostSystemProperties.put((String)entry.getKey(), (String)entry.getValue()); } return true; } catch (MalformedURLException e) { STDERR.println(HostControllerLogger.ROOT_LOGGER.malformedUrl(arg, usageNote())); return false; } catch (IOException e) { STDERR.println(HostControllerLogger.ROOT_LOGGER.unableToLoadProperties(url, usageNote())); return false; } }
systemProperty = File.pathSeparator; } else { systemProperty = WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(s); systemProperty = WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(input.substring(from + 2, dv)); defaultValue = input.substring(dv + 1, to);
private static boolean processProperties(final String arg, final String urlSpec, Map<String, String> hostSystemProperties) { URL url = null; try { url = makeURL(urlSpec); Properties props = new Properties(); props.load(url.openConnection().getInputStream()); WildFlySecurityManager.getSystemPropertiesPrivileged().putAll(props); for (Map.Entry<Object, Object> entry : props.entrySet()) { hostSystemProperties.put((String)entry.getKey(), (String)entry.getValue()); } return true; } catch (MalformedURLException e) { STDERR.println(HostControllerLogger.ROOT_LOGGER.malformedUrl(arg, usageNote())); return false; } catch (IOException e) { STDERR.println(HostControllerLogger.ROOT_LOGGER.unableToLoadProperties(url, usageNote())); return false; } }
if (model.hasDefined(JOURNAL_NODE_MANAGER_STORE_TABLE.getName())) { nodeManagerStoreTableName = JOURNAL_NODE_MANAGER_STORE_TABLE.resolveModelAttribute(context, model).asString(); } else if ( org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().containsKey(ARTEMIS_BROKER_CONFIG_NODEMANAGER_STORE_TABLE_NAME)) { nodeManagerStoreTableName = org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(ARTEMIS_BROKER_CONFIG_NODEMANAGER_STORE_TABLE_NAME); } else { nodeManagerStoreTableName = JOURNAL_NODE_MANAGER_STORE_TABLE.getDefaultValue().asString(); org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().remove(ARTEMIS_BROKER_CONFIG_NODEMANAGER_STORE_TABLE_NAME); storageConfiguration.setNodeManagerStoreTableName(nodeManagerStoreTableName); final long lockExpirationInMillis; if (model.hasDefined(JOURNAL_JDBC_LOCK_EXPIRATION.getName())) { lockExpirationInMillis = SECONDS.toMillis(JOURNAL_JDBC_LOCK_EXPIRATION.resolveModelAttribute(context, model).asInt()); } else if ( org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().containsKey(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_EXPIRATION_MILLIS)) { lockExpirationInMillis = Long.parseLong( org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_EXPIRATION_MILLIS)); } else { lockExpirationInMillis = SECONDS.toMillis(JOURNAL_JDBC_LOCK_EXPIRATION.getDefaultValue().asInt()); org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().remove(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_EXPIRATION_MILLIS); storageConfiguration.setJdbcLockExpirationMillis(lockExpirationInMillis); final long lockRenewPeriodInMillis; if (model.hasDefined(JOURNAL_JDBC_LOCK_RENEW_PERIOD.getName())) { lockRenewPeriodInMillis = SECONDS.toMillis(JOURNAL_JDBC_LOCK_RENEW_PERIOD.resolveModelAttribute(context, model).asInt()); } else if (org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().containsKey(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_RENEW_PERIOD_MILLIS)) { lockRenewPeriodInMillis = Long.parseLong( org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_RENEW_PERIOD_MILLIS)); } else { lockRenewPeriodInMillis = SECONDS.toMillis(JOURNAL_JDBC_LOCK_RENEW_PERIOD.getDefaultValue().asInt()); org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().remove(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_RENEW_PERIOD_MILLIS); storageConfiguration.setJdbcLockRenewPeriodMillis(lockRenewPeriodInMillis);
if (model.hasDefined(JOURNAL_NODE_MANAGER_STORE_TABLE.getName())) { nodeManagerStoreTableName = JOURNAL_NODE_MANAGER_STORE_TABLE.resolveModelAttribute(context, model).asString(); } else if ( org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().containsKey(ARTEMIS_BROKER_CONFIG_NODEMANAGER_STORE_TABLE_NAME)) { nodeManagerStoreTableName = org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(ARTEMIS_BROKER_CONFIG_NODEMANAGER_STORE_TABLE_NAME); } else { nodeManagerStoreTableName = JOURNAL_NODE_MANAGER_STORE_TABLE.getDefaultValue().asString(); org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().remove(ARTEMIS_BROKER_CONFIG_NODEMANAGER_STORE_TABLE_NAME); storageConfiguration.setNodeManagerStoreTableName(nodeManagerStoreTableName); final long lockExpirationInMillis; if (model.hasDefined(JOURNAL_JDBC_LOCK_EXPIRATION.getName())) { lockExpirationInMillis = SECONDS.toMillis(JOURNAL_JDBC_LOCK_EXPIRATION.resolveModelAttribute(context, model).asInt()); } else if ( org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().containsKey(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_EXPIRATION_MILLIS)) { lockExpirationInMillis = Long.parseLong( org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_EXPIRATION_MILLIS)); } else { lockExpirationInMillis = SECONDS.toMillis(JOURNAL_JDBC_LOCK_EXPIRATION.getDefaultValue().asInt()); org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().remove(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_EXPIRATION_MILLIS); storageConfiguration.setJdbcLockExpirationMillis(lockExpirationInMillis); final long lockRenewPeriodInMillis; if (model.hasDefined(JOURNAL_JDBC_LOCK_RENEW_PERIOD.getName())) { lockRenewPeriodInMillis = SECONDS.toMillis(JOURNAL_JDBC_LOCK_RENEW_PERIOD.resolveModelAttribute(context, model).asInt()); } else if (org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().containsKey(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_RENEW_PERIOD_MILLIS)) { lockRenewPeriodInMillis = Long.parseLong( org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().getProperty(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_RENEW_PERIOD_MILLIS)); } else { lockRenewPeriodInMillis = SECONDS.toMillis(JOURNAL_JDBC_LOCK_RENEW_PERIOD.getDefaultValue().asInt()); org.wildfly.security.manager.WildFlySecurityManager.getSystemPropertiesPrivileged().remove(ARTEMIS_BROKER_CONFIG_JBDC_LOCK_RENEW_PERIOD_MILLIS); storageConfiguration.setJdbcLockRenewPeriodMillis(lockRenewPeriodInMillis);
ServerEnvironment serverEnvironment = determineEnvironment(WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.SELF_CONTAINED, startTime); final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
ServerEnvironment serverEnvironment = determineEnvironment(WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.SELF_CONTAINED, startTime); final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
ServerEnvironment serverEnvironment = determineEnvironment(WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.SELF_CONTAINED, startTime); final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
void parseSystemProperties(final XMLExtendedStreamReader reader, final ModelNode address, final Namespace expectedNs, final List<ModelNode> updates, boolean standalone) throws XMLStreamException { Properties properties = WildFlySecurityManager.getSystemPropertiesPrivileged();
ServerEnvironment serverEnvironment = determineEnvironment(args, WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.STANDALONE); if (serverEnvironment == null) { abort(null);
ServerEnvironmentWrapper serverEnvironmentWrapper = determineEnvironment(args, WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.STANDALONE, Module.getStartTime());
ServerEnvironmentWrapper serverEnvironmentWrapper = determineEnvironment(args, WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.STANDALONE, Module.getStartTime());
boolean process = this.process; final Properties systemProps = WildFlySecurityManager.getSystemPropertiesPrivileged(); if (systemProps.containsKey(PER_DEPLOYMENT_LOGGING)) { LoggingLogger.ROOT_LOGGER.perDeploymentPropertyDeprecated(PER_DEPLOYMENT_LOGGING, attributeName);
boolean process = this.process; final Properties systemProps = WildFlySecurityManager.getSystemPropertiesPrivileged(); if (systemProps.containsKey(PER_DEPLOYMENT_LOGGING)) { LoggingLogger.ROOT_LOGGER.perDeploymentPropertyDeprecated(PER_DEPLOYMENT_LOGGING, attributeName);