@Override public void onLaunching(Platform platform, MetaClass metaClass, OptionsByType optionsByType) { SystemProperties systemProperties = optionsByType.get(SystemProperties.class); if (systemProperties != null) { systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JAVA_NET_PREFER_IPV4_STACK, preferred)); optionsByType.add(systemProperties); } }
systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE)); systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JavaApplication.JAVA_RMI_SERVER_HOSTNAME, hostName.get())); systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JavaApplication.JAVA_RMI_SERVER_HOSTNAME, platform.getAddress().getHostAddress())); systemProperties = systemProperties.addIfAbsent(SystemProperty.of("java.rmi.server.useCodebaseOnly", "true")); systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_PORT, port.get().get())); systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_PORT, LocalPlatform.get().getAvailablePorts())); systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_AUTHENTICATE, authenticate.get())); systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_SSL, ssl.get()));
@Override public void onLaunching(Platform platform, MetaClass metaClass, OptionsByType optionsByType) { SystemProperties systemProperties = optionsByType.get(SystemProperties.class); if (systemProperties != null) { systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JAVA_NET_PREFER_IPV4_STACK, preferred)); optionsByType.add(systemProperties); } }
systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE)); systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JavaApplication.JAVA_RMI_SERVER_HOSTNAME, hostName.get())); systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JavaApplication.JAVA_RMI_SERVER_HOSTNAME, platform.getAddress().getHostAddress())); systemProperties = systemProperties.addIfAbsent(SystemProperty.of("java.rmi.server.useCodebaseOnly", "true")); systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_PORT, port.get().get())); systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_PORT, LocalPlatform.get().getAvailablePorts())); systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_AUTHENTICATE, authenticate.get())); systemProperties = systemProperties.addIfAbsent(SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_SSL, ssl.get()));
@Override public void onLaunching(Platform platform, MetaClass metaClass, OptionsByType optionsByType) { SystemProperties systemProperties = optionsByType.get(SystemProperties.class); if (systemProperties != null && enabled) { // modify the system properties systemProperties = systemProperties.addIfAbsent(SystemProperty.of("java.awt.headless", true)); // add the modified system properties back into the options optionsByType.add(systemProperties); } }
@Override public void onLaunching(Platform platform, MetaClass metaClass, OptionsByType optionsByType) { SystemProperties systemProperties = optionsByType.get(SystemProperties.class); if (systemProperties != null && enabled) { // modify the system properties systemProperties = systemProperties.addIfAbsent(SystemProperty.of("java.awt.headless", true)); // add the modified system properties back into the options optionsByType.add(systemProperties); } }
systemProperties = systemProperties.addIfAbsent(SystemProperty.of(LocalHost.PROPERTY, new SystemProperty.ContextSensitiveValue() systemProperties = systemProperties.addIfAbsent(SystemProperty.of(MachineName.PROPERTY, new SystemProperty.ContextSensitiveValue()
systemProperties = systemProperties.addIfAbsent(SystemProperty.of(LocalHost.PROPERTY, new SystemProperty.ContextSensitiveValue() systemProperties = systemProperties.addIfAbsent(SystemProperty.of(MachineName.PROPERTY, new SystemProperty.ContextSensitiveValue()
systemProperties = systemProperties.addIfAbsent(SystemProperty.of(LocalHost.PROPERTY, new SystemProperty.ContextSensitiveValue() systemProperties = systemProperties.addIfAbsent(SystemProperty.of(MachineName.PROPERTY, new SystemProperty.ContextSensitiveValue()