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