Package org.infinispan.commons.util
Class Version
- java.lang.Object
-
- org.infinispan.commons.util.Version
-
@Immutable public class Version extends Object
Contains version information about this release of Infinispan.- Since:
- 4.0
- Author:
- Bela Ban
-
-
Field Summary
Fields Modifier and Type Field Description static String
INFINISPAN_BRAND_NAME
static String
INFINISPAN_BRAND_VERSION
static String
INFINISPAN_CODENAME
static String
INFINISPAN_CORE_SCHEMA_VERSION
static String
INFINISPAN_MODULE_SLOT_PREFIX
static String
INFINISPAN_MODULE_SLOT_VERSION
static String
INFINISPAN_VERSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
brandName()
static boolean
compareTo(byte[] v)
static String
decodeVersion(short version)
static String
decodeVersionForSerialization(short version)
Serialization only looks at major and minor, not micro or below.static Version
from(InputStream is)
static String
getBrandName()
static String
getBrandVersion()
static String
getCodename()
static String
getMajor()
static String
getMajorMinor()
static short
getMarshallVersion()
static String
getMinor()
static String
getModuleSlot()
static String
getSchemaVersion()
static String
getVersion()
static short
getVersionShort()
static short
getVersionShort(String versionString)
static void
main(String[] args)
Prints version information.static void
printFullVersionInformation()
Prints full version information to the standard output.static String
printVersion()
Returns version information as a string.String
version()
-
-
-
Field Detail
-
INFINISPAN_VERSION
public static final String INFINISPAN_VERSION
- See Also:
- Constant Field Values
-
INFINISPAN_BRAND_NAME
public static final String INFINISPAN_BRAND_NAME
- See Also:
- Constant Field Values
-
INFINISPAN_BRAND_VERSION
public static final String INFINISPAN_BRAND_VERSION
- See Also:
- Constant Field Values
-
INFINISPAN_CODENAME
public static final String INFINISPAN_CODENAME
- See Also:
- Constant Field Values
-
INFINISPAN_CORE_SCHEMA_VERSION
public static final String INFINISPAN_CORE_SCHEMA_VERSION
- See Also:
- Constant Field Values
-
INFINISPAN_MODULE_SLOT_PREFIX
public static final String INFINISPAN_MODULE_SLOT_PREFIX
- See Also:
- Constant Field Values
-
INFINISPAN_MODULE_SLOT_VERSION
public static final String INFINISPAN_MODULE_SLOT_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
from
public static Version from(InputStream is)
-
version
public String version()
-
brandName
public String brandName()
-
getVersion
public static String getVersion()
-
getBrandName
public static String getBrandName()
-
getBrandVersion
public static String getBrandVersion()
-
getCodename
public static String getCodename()
-
getModuleSlot
public static String getModuleSlot()
-
getMarshallVersion
public static short getMarshallVersion()
-
getSchemaVersion
public static String getSchemaVersion()
-
getMajorMinor
public static String getMajorMinor()
-
getMajor
public static String getMajor()
-
getMinor
public static String getMinor()
-
compareTo
public static boolean compareTo(byte[] v)
-
getVersionShort
public static short getVersionShort()
-
getVersionShort
public static short getVersionShort(String versionString)
-
decodeVersion
public static String decodeVersion(short version)
-
decodeVersionForSerialization
public static String decodeVersionForSerialization(short version)
Serialization only looks at major and minor, not micro or below.
-
main
public static void main(String[] args)
Prints version information.
-
printFullVersionInformation
public static void printFullVersionInformation()
Prints full version information to the standard output.
-
printVersion
public static String printVersion()
Returns version information as a string.
-
-