Class Hierarchy        Index

Class COM.cloudscape.tools.sysinfo

java.lang.Object
   |
   +----COM.cloudscape.tools.sysinfo

public class sysinfo
extends Object
Copyright © 1998-1999, Cloudscape, 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.


Variable Index

 o CLIENT
The genus name for the client code.
 o DBMS
The genus name for the DBMS code.
 o TOOLS
The genus name for the tools code.

Method Index

 o getBuildNumber()
gets the build number for the DBMS library
 o getBuildNumber(String)
gets the build number for the specified library
 o getMaintVersion()
gets the maintenance version of the DBMS code.
 o getMaintVersion(String)
gets the maintenace version of the specified code library.
 o getMajorVersion()
gets the major version of the DBMS code.
 o getMajorVersion(String)
gets the major version of the specified code library.
 o getMinorVersion()
gets the minor version of the DBMS code.
 o getMinorVersion(String)
gets the minor version of the specified code library.
 o getProductName()
gets the internal name for the DBMS library
 o getProductName(String)
gets an internal name for the specified code library.
 o main(String[])

Variables

 o DBMS
 public static final String DBMS
The genus name for the DBMS code. Use this to determine the version of the DBMS code.

 o TOOLS
 public static final String TOOLS
The genus name for the tools code. Use this to determine the version of code in tools.jar

 o CLIENT
 public static final String CLIENT
The genus name for the client code. Use this to determine the version of the code in client.jar

Methods

 o main
 public static void main(String args[])
 o getMajorVersion
 public static int getMajorVersion()
gets the major version of the DBMS code.

Returns:
the major version. Returns -1 if not found.
 o getMajorVersion
 public static int getMajorVersion(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.
 o getMinorVersion
 public static int getMinorVersion()
gets the minor version of the DBMS code.

Returns:
the minor version. Returns -1 if not found.
 o getMinorVersion
 public static int getMinorVersion(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.
 o getMaintVersion
 public static int getMaintVersion()
gets the maintenance version of the DBMS code.

Returns:
the maintenance version. Returns -1 if not found.
 o getMaintVersion
 public static int getMaintVersion(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.
 o 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.
 o getBuildNumber
 public static int getBuildNumber(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.
 o getProductName
 public static String getProductName()
gets the internal name for the DBMS library

 o getProductName
 public static String getProductName(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        Index