coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

Introduce JmxFeature Options for configuring JMX for a Java Application #332

Closed brianoliver closed 8 years ago

brianoliver commented 8 years ago

As a Java Developer I'd like to be able to use Options to configure Jmx parameters, instead of having to use/remember System Properties. For example, we'd like to avoid things like:

SystemProperty.of("java.rmi.server.hostname", address.getHostName()),
SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_PORT, availablePorts),
SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_AUTHENTICATE, "false”),
SystemProperty.of(JmxFeature.SUN_MANAGEMENT_JMXREMOTE_SSL, "false”),

and instead do something like:

JmxFeature.hostName(...),
JmxFeature.port(...),
JmxFeature.authenticate(...),
JmxFeature.ssl(...),