public class IgniteProductVersion extends Object implements Comparable<IgniteProductVersion>, Externalizable
Node version can be acquired via ClusterNode.version()
method.
Two versions are compared in the following order: major number, minor number, maintenance number, revision timestamp.
Constructor and Description |
---|
IgniteProductVersion()
Empty constructor required by
Externalizable . |
IgniteProductVersion(byte major,
byte minor,
byte maintenance,
long revTs,
byte[] revHash) |
IgniteProductVersion(byte major,
byte minor,
byte maintenance,
String stage,
long revTs,
byte[] revHash) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(@NotNull IgniteProductVersion o) |
int |
compareToIgnoreTimestamp(@NotNull IgniteProductVersion o) |
boolean |
equals(Object o) |
static IgniteProductVersion |
fromString(String verStr)
Tries to parse product version from it's string representation.
|
boolean |
greaterThanEqual(int major,
int minor,
int maintenance) |
int |
hashCode() |
byte |
maintenance()
Gets maintenance version number.
|
byte |
major()
Gets major version number.
|
byte |
minor()
Gets minor version number.
|
void |
readExternal(ObjectInput in) |
Date |
releaseDate()
Gets release date.
|
byte[] |
revisionHash()
Gets revision hash.
|
long |
revisionTimestamp()
Gets revision timestamp.
|
String |
stage() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public IgniteProductVersion()
Externalizable
.public IgniteProductVersion(byte major, byte minor, byte maintenance, long revTs, byte[] revHash)
major
- Major version number.minor
- Minor version number.maintenance
- Maintenance version number.revTs
- Revision timestamp.revHash
- Revision hash.public IgniteProductVersion(byte major, byte minor, byte maintenance, String stage, long revTs, byte[] revHash)
major
- Major version number.minor
- Minor version number.maintenance
- Maintenance version number.stage
- Stage of development.revTs
- Revision timestamp.revHash
- Revision hash.public byte major()
public byte minor()
public byte maintenance()
public String stage()
public long revisionTimestamp()
public byte[] revisionHash()
public Date releaseDate()
public boolean greaterThanEqual(int major, int minor, int maintenance)
major
- Major version number.minor
- Minor version number.maintenance
- Maintenance version number.True
if this version is greater or equal than the one passed in.public int compareTo(@NotNull @NotNull IgniteProductVersion o)
compareTo
in interface Comparable<IgniteProductVersion>
public int compareToIgnoreTimestamp(@NotNull @NotNull IgniteProductVersion o)
o
- Other version.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public static IgniteProductVersion fromString(String verStr)
verStr
- String representation of version.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019