corda / net.corda.testing.driver / JmxPolicy

JmxPolicy

data class JmxPolicy

A class containing configuration information for Jolokia JMX, to be used when creating a node via the driver.

Constructors

<init>

JmxPolicy()JmxPolicy(jmxHttpServerPortAllocation: PortAllocation)

Create a JmxPolicy that turns on monitoring using the given PortAllocation.

JmxPolicy(startJmxHttpServer: Boolean = false, jmxHttpServerPortAllocation: PortAllocation = incrementalPortAllocation())

A class containing configuration information for Jolokia JMX, to be used when creating a node via the driver.

Properties

jmxHttpServerPortAllocation

val jmxHttpServerPortAllocation: PortAllocation

The port allocation strategy to use for remote Jolokia/JMX monitoring over HTTP. Defaults to incremental from port 7005. Use NodeHandle.jmxAddress to get the assigned address.

startJmxHttpServer

val startJmxHttpServer: Boolean

Indicates whether the spawned nodes should start with a Jolokia JMX agent to enable remote JMX monitoring using HTTP/JSON.

Companion Object Functions

defaultEnabled

fun defaultEnabled(): JmxPolicy

Returns a default JmxPolicy that turns on monitoring.