public class JmxPolicy
A class containing configuration information for Jolokia JMX, to be used when creating a node via the Driver.driver
.
Driver.driver
Modifier and Type | Class and Description |
---|---|
static class |
JmxPolicy.Companion |
Modifier and Type | Field and Description |
---|---|
static JmxPolicy.Companion |
Companion |
Constructor and Description |
---|
JmxPolicy(boolean startJmxHttpServer,
PortAllocation jmxHttpServerPortAllocation)
Deprecated.
|
JmxPolicy()
Deprecated.
|
JmxPolicy(PortAllocation jmxHttpServerPortAllocation)
Create a
class JmxPolicy that turns on monitoring using the given class PortAllocation . |
Modifier and Type | Method and Description |
---|---|
boolean |
component1()
Indicates whether the spawned nodes should start with a Jolokia JMX agent to enable remote
|
PortAllocation |
component2()
The port allocation strategy to use for remote Jolokia/JMX monitoring over HTTP.
|
JmxPolicy |
copy(boolean startJmxHttpServer,
PortAllocation jmxHttpServerPortAllocation)
A class containing configuration information for Jolokia JMX, to be used when creating a node via the
Driver.driver . |
boolean |
equals(java.lang.Object p) |
PortAllocation |
getJmxHttpServerPortAllocation()
The port allocation strategy to use for remote Jolokia/JMX monitoring over HTTP.
|
boolean |
getStartJmxHttpServer()
Indicates whether the spawned nodes should start with a Jolokia JMX agent to enable remote
|
int |
hashCode() |
java.lang.String |
toString() |
public static JmxPolicy.Companion Companion
public JmxPolicy(boolean startJmxHttpServer, PortAllocation jmxHttpServerPortAllocation)
A class containing configuration information for Jolokia JMX, to be used when creating a node via the Driver.driver
.
startJmxHttpServer
- Indicates whether the spawned nodes should start with a Jolokia JMX agent to enable remoteJMX monitoring using HTTP/JSON.jmxHttpServerPortAllocation
- The port allocation strategy to use for remote Jolokia/JMX monitoring over HTTP.Defaults to incremental from port 7005. Use NodeHandle.getJmxAddress
to get the assigned address.Driver.driver
public JmxPolicy()
public JmxPolicy(PortAllocation jmxHttpServerPortAllocation)
Create a class JmxPolicy
that turns on monitoring using the given class PortAllocation
.
class JmxPolicy
,
class PortAllocation
public boolean getStartJmxHttpServer()
Indicates whether the spawned nodes should start with a Jolokia JMX agent to enable remote
JMX monitoring using HTTP/JSON.
public PortAllocation getJmxHttpServerPortAllocation()
The port allocation strategy to use for remote Jolokia/JMX monitoring over HTTP.
Defaults to incremental from port 7005. Use NodeHandle.getJmxAddress
to get the assigned address.
NodeHandle.getJmxAddress
public boolean component1()
Indicates whether the spawned nodes should start with a Jolokia JMX agent to enable remote
JMX monitoring using HTTP/JSON.
public PortAllocation component2()
The port allocation strategy to use for remote Jolokia/JMX monitoring over HTTP.
Defaults to incremental from port 7005. Use NodeHandle.getJmxAddress
to get the assigned address.
NodeHandle.getJmxAddress
public JmxPolicy copy(boolean startJmxHttpServer, PortAllocation jmxHttpServerPortAllocation)
A class containing configuration information for Jolokia JMX, to be used when creating a node via the Driver.driver
.
Driver.driver
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)