public class JMXService extends Object
Constructor and Description |
---|
JMXService() |
Modifier and Type | Method and Description |
---|---|
static Optional<org.apache.flink.runtime.management.JMXServer> |
getInstance()
Acquire the global singleton JMXServer instance.
|
static Optional<Integer> |
getPort() |
static void |
startInstance(String portsConfig)
Start the JMV-wide singleton JMX server.
|
static void |
stopInstance()
Stop the JMX server.
|
public static Optional<org.apache.flink.runtime.management.JMXServer> getInstance()
public static void startInstance(String portsConfig)
If JMXServer static instance is already started, it will not be started again. Instead a warning will be logged indicating which port the existing JMXServer static instance is exposing.
portsConfig
- port configuration of the JMX server.public static void stopInstance() throws IOException
IOException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.