| java.lang.Object org.apache.derby.impl.tools.sysinfo.Main
Main | final public class Main (Code) | |
Sysinfo reports values relevant to the current Derby configuration.
Sysinfo looks for properties files in org.apache.derby.info named after
the genus names in org.apache.derby.tools.sysinfo, and gets their location
using getResource. It also searches the classpath and attempts to load
the info properties files from the directory or jar locations on the
classpath, and eliminates any duplicated information. If no files
are found, or some other exception occurs, the
value returned will be that set for the key
SysInfo.failureTag, or be the value "".
This class can be used to print out system information at the
command line by issuing the command:
java org.apache.derby.tools.sysinfo
Alternatively, you can use SysInfo within your program to display
Cloudscape information; a Cloudscape version string is returned by this Java code:
new Main().toString();
|
Method Summary | |
public static ZipInfoProperties[] | getAllInfo(String classpath) Get all the info we can obtain from the local execution context
as to the availability of the Derby classes by attempting to load
the info files with loadZipFromResource() and checking classpath
locations with checkForInfo if the classpath is accessible. | public static String | getCompleteMessage(String msgId, Object[] arguments) | public static void | getMainInfo(java.io.PrintWriter aw, boolean pause) | public static String | getTextMessage(String msgId) | public static String | getTextMessage(String msgId, Object a1) | public static String | getTextMessage(String msgId, Object a1, Object a2) | public static String | getTextMessage(String msgId, Object a1, Object a2, Object a3) | public static String | getTextMessage(String msgId, Object a1, Object a2, Object a3, Object a4) | public static void | main(String args) Application entry point for SysInfo. | static void | useMe(String[] args, java.io.PrintWriter pw) |
getAllInfo | public static ZipInfoProperties[] getAllInfo(String classpath)(Code) | | Get all the info we can obtain from the local execution context
as to the availability of the Derby classes by attempting to load
the info files with loadZipFromResource() and checking classpath
locations with checkForInfo if the classpath is accessible.
Parameters: classpath - the classpath, or null if not accessible an array of ZipInfoProperties with the locations of the locatedresources See Also: Main.loadZipFromResource() See Also: Main.checkForInfo(String) |
main | public static void main(String args)(Code) | | Application entry point for SysInfo. This will print out
the Cloudscape product information as well as a snapshot of
the System properties.
|
|
|