public class NodeDiagnosticInfo
A class NodeDiagnosticInfo holds information about the current node version.
class NodeDiagnosticInfopublic NodeDiagnosticInfo(@NotNull
java.lang.String version,
@NotNull
java.lang.String revision,
int platformVersion,
@NotNull
java.lang.String vendor,
@NotNull
java.util.List<net.corda.core.cordapp.CordappInfo> cordapps)
A class NodeDiagnosticInfo holds information about the current node version.
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 fromplatformVersion - 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 nodecordapps - A list of CorDapps currently installed on this nodeclass NodeDiagnosticInfo@NotNull public java.lang.String getVersion()
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).
@NotNull public java.lang.String getRevision()
The git commit hash this node was built from
public int getPlatformVersion()
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)
@NotNull public java.lang.String getVendor()
The vendor of this node
@NotNull public java.util.List<net.corda.core.cordapp.CordappInfo> getCordapps()
A list of CorDapps currently installed on this node
@NotNull public java.lang.String component1()
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).
@NotNull public java.lang.String component2()
The git commit hash this node was built from
public int component3()
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)
@NotNull public java.lang.String component4()
The vendor of this node
@NotNull public java.util.List<net.corda.core.cordapp.CordappInfo> component5()
A list of CorDapps currently installed on this node
@NotNull public NodeDiagnosticInfo copy(@NotNull java.lang.String version, @NotNull java.lang.String revision, int platformVersion, @NotNull java.lang.String vendor, @NotNull java.util.List<net.corda.core.cordapp.CordappInfo> cordapps)
A class NodeDiagnosticInfo holds information about the current node version.
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 fromplatformVersion - 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 nodecordapps - A list of CorDapps currently installed on this nodeclass NodeDiagnosticInfo@NotNull public java.lang.String toString()
A class NodeDiagnosticInfo holds information about the current node version.
class NodeDiagnosticInfopublic int hashCode()
A class NodeDiagnosticInfo holds information about the current node version.
class NodeDiagnosticInfopublic boolean equals(@Nullable
java.lang.Object p)
A class NodeDiagnosticInfo holds information about the current node version.
class NodeDiagnosticInfo