Class Hierarchy Previous Next Index
Class COM.cloudscape.tools.sysinfo
java.lang.Object
|
+----COM.cloudscape.tools.sysinfo
- public class sysinfo
- extends java.lang.Object
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.
This class is used to display system information to System.out
To run from the command-line, enter the following:
java COM.cloudscape.tools.sysinfo
Also available on this class are methods which allow you to determine
the version of the code for the system without actually booting a database.
Please note that this is the Cloudscape version of the .jar files, not of your databases.
The numbering scheme for released Cloudscape products is m1.m2.m3
where m1
is the major release version, m2
is the minor release version,
and m3
is the maintenance level. Versions of the product with the same
major and minor version numbers are considered feature compatible.
Valid major and minor versions are always greater than zero. Valid maintenance
versions are greater than or equal to zero.
CLIENT- The genus name for the client code.
DBMS- The genus name for the DBMS code.
TOOLS- The genus name for the tools code.
getBuildNumber()
- gets the build number for the DBMS library
getBuildNumber(String)
- gets the build number for the specified library
getMaintVersion()
- gets the maintenance version of the DBMS code.
getMaintVersion(String)
- gets the maintenace version of the specified code library.
getMajorVersion()
- gets the major version of the DBMS code.
getMajorVersion(String)
- gets the major version of the specified code library.
getMinorVersion()
- gets the minor version of the DBMS code.
getMinorVersion(String)
- gets the minor version of the specified code library.
getProductName()
- gets the internal name for the DBMS library
getProductName(String)
- gets an internal name for the specified code library.
main(String[])
-
DBMS
public static final java.lang.String DBMS
The genus name for the DBMS code. Use this to determine the version of the
DBMS code.
TOOLS
public static final java.lang.String TOOLS
The genus name for the tools code. Use this to determine the version of
code in tools.jar
CLIENT
public static final java.lang.String CLIENT
The genus name for the client code. Use this to determine the version of
the code in client.jar
main
public static void main(java.lang.String args[])
getMajorVersion
public static int getMajorVersion()
gets the major version of the DBMS code.
- Returns:
- the major version. Returns -1 if not found.
getMajorVersion
public static int getMajorVersion(java.lang.String genus)
gets the major version of the specified code library.
- Parameters:
genus
- which library to get the version of. Valid inputs include
DBMS, TOOLS, and CLIENT
- Returns:
- the major version. Return -1 if the information is not found.
getMinorVersion
public static int getMinorVersion()
gets the minor version of the DBMS code.
- Returns:
- the minor version. Returns -1 if not found.
getMinorVersion
public static int getMinorVersion(java.lang.String genus)
gets the minor version of the specified code library.
- Parameters:
genus
- which library to get the version of. Valid inputs include
DBMS, TOOLS, and CLIENT
- Returns:
- the minor version. Return -1 if the information is not found.
getMaintVersion
public static int getMaintVersion()
gets the maintenance version of the DBMS code.
- Returns:
- the maintenance version. Returns -1 if not found.
getMaintVersion
public static int getMaintVersion(java.lang.String genus)
gets the maintenace version of the specified code library.
- Parameters:
genus
- which library to get the version of. Valid inputs include
DBMS, TOOLS, and CLIENT
- Returns:
- the maintenace version. Return -1 if the information is not found.
getBuildNumber
public static int getBuildNumber()
gets the build number for the DBMS library
- Returns:
- the build number, or -1 if the information is not found.
getBuildNumber
public static int getBuildNumber(java.lang.String genus)
gets the build number for the specified library
- Parameters:
genus
- which library to get the build number for. Valid inputs are
DBMS, TOOLS, CLIENT
- Returns:
- the build number, or -1 if the information is not found.
getProductName
public static java.lang.String getProductName()
gets the internal name for the DBMS library
getProductName
public static java.lang.String getProductName(java.lang.String genus)
gets an internal name for the specified code library.
- Parameters:
genus
- which library to get the name for
- Returns:
- the name.
Class Hierarchy Previous Next Index