corda / net.corda.core.node / NodeDiagnosticInfo

NodeDiagnosticInfo

data class NodeDiagnosticInfo

A NodeDiagnosticInfo holds information about the current node version.

Parameters

version - The current node version string, e.g. 4.3, 4.4-SNAPSHOT. Note that this string is effectively freeform, and so should only be used for providing diagnostic information. It should not be used to make functionality decisions (the platformVersion is a better fit for this).

revision - The git commit hash this node was built from

platformVersion - The platform version of this node. This number represents a released API version, and should be used to make functionality decisions (e.g. enabling an app feature only if an underlying platform feature exists)

vendor - The vendor of this node

cordapps - A list of CorDapps currently installed on this node

Constructors

<init>

NodeDiagnosticInfo(version: String, revision: String, platformVersion: Int, vendor: String, cordapps: List<CordappInfo>)

A NodeDiagnosticInfo holds information about the current node version.

Properties

cordapps

val cordapps: List<CordappInfo>

A list of CorDapps currently installed on this node

platformVersion

val platformVersion: Int

The platform version of this node. This number represents a released API version, and should be used to make functionality decisions (e.g. enabling an app feature only if an underlying platform feature exists)

revision

val revision: String

The git commit hash this node was built from

vendor

val vendor: String

The vendor of this node

version

val version: String

The current node version string, e.g. 4.3, 4.4-SNAPSHOT. Note that this string is effectively freeform, and so should only be used for providing diagnostic information. It should not be used to make functionality decisions (the platformVersion is a better fit for this).

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.