|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.Version
public class Version
We're using the scheme described at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77231 for major, minor and micro version numbers. We have 5 bits for major and minor version numbers each and 6 bits for the micro version. This gives: X = 0-31 for major versions Y = 0-31 for minor versions Z = 0-63 for micro versions
| Field Summary | |
|---|---|
static java.lang.String |
description
|
static short |
major
|
static short |
micro
|
static short |
minor
|
static java.lang.String |
string_version
|
static short |
version
|
| Constructor Summary | |
|---|---|
Version()
|
|
| Method Summary | |
|---|---|
static short[] |
decode(short version)
|
static short |
encode(int major,
int minor,
int micro)
Method copied from http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77231 |
static boolean |
isBinaryCompatible(short ver)
Checks whether ver is binary compatible with the current version. |
static boolean |
isBinaryCompatible(short ver1,
short ver2)
|
static boolean |
isSame(short v)
Compares the specified version number against the current version number. |
static void |
main(java.lang.String[] args)
Prints the value of the description and cvs fields to System.out. |
static java.lang.String |
print(short version)
Method copied from http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77231 |
static java.lang.String |
printDescription()
Returns the catenation of the description and cvs fields. |
static java.lang.String |
printVersion()
Returns the version field as a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short major
public static final short minor
public static final short micro
public static final java.lang.String description
public static final short version
public static final java.lang.String string_version
| Constructor Detail |
|---|
public Version()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - public static java.lang.String printDescription()
public static java.lang.String printVersion()
public static boolean isSame(short v)
v - short
public static short encode(int major,
int minor,
int micro)
public static java.lang.String print(short version)
public static short[] decode(short version)
public static boolean isBinaryCompatible(short ver)
ver -
public static boolean isBinaryCompatible(short ver1,
short ver2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||