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()

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

JmxPolicy(jmxHttpServerPortAllocation: PortAllocation)

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

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

Properties

jmxHttpServerPortAllocation

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.

val jmxHttpServerPortAllocation: PortAllocation

startJmxHttpServer

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

val startJmxHttpServer: Boolean

Companion Object Functions

defaultEnabled

Returns a default JmxPolicy that turns on monitoring.

fun defaultEnabled(): JmxPolicy