corda / net.corda.testing.node / MockServices / cordaTelemetryComponent

cordaTelemetryComponent

open fun <T : TelemetryComponent> cordaTelemetryComponent(type: Class<T>): T

Return the singleton instance of the given Corda telemetry component type. This is a class that implements TelemetryComponent and will have automatically been registered by the node.

Exceptions

IllegalArgumentException - If the instance is not found.