- All Implemented Interfaces:
Serializable
,Comparable<About>
,Constable
Provides information about the Apache SIS running environment.
This class collects information from various places like
Version.SIS
,
System.getProperties()
, Locale.getDefault()
or TimeZone.getDefault()
.
This class does not collect every possible information. Instead, it tries to focus on the most
important information for SIS, as determined by experience in troubleshooting.
Some of those information are:
- Version numbers (SIS, Java, Operation system).
- Default locale, timezone and character encoding.
- Current directory, user home and Java home.
- Libraries on the classpath and extension directories.
- Since:
- 0.3
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInformation about the libraries.Information about default locale, timezone and character encoding.Information about logging.Information about user home directory, java installation directory or other kind of data.Information about available plugins.Information about software version numbers. -
Method Summary
Modifier and TypeMethodDescriptionstatic TreeTable
Returns all known information about the current Apache SIS running environment.static TreeTable
configuration
(Set<About> sections, Locale locale, TimeZone timezone) Returns a subset of the information about the current Apache SIS running environment.static About
Returns the enum constant of this class with the specified name.static About[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VERSIONS
Information about software version numbers. This section includes:- Apache SIS version
- Java runtime version and vendor
- Operation system name and version
- EPSG geodetic dataset in use
-
LOCALIZATION
Information about default locale, timezone and character encoding. This section includes:- Default locale, completed by ISO 3-letter codes
- Default timezone, completed by timezone offset
- Current date and time in the default timezone
- Default character encoding
-
PLUGINS
Information about available plugins. This section includes:- List of data store implementations
- Since:
- 0.8
-
LOGGING
Information about logging. -
PATHS
Information about user home directory, java installation directory or other kind of data. This section includes:- User directory
- Default directory
- SIS data directory
- Temporary directory
- Java home directory
-
LIBRARIES
Information about the libraries. This section includes:- JAR files in the extension directories
- JAR files and directories in the application classpath
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
configuration
Returns all known information about the current Apache SIS running environment. The information are formatted using the system default locale and timezone.This convenience method is equivalent to the following code:
return configuration(EnumSet.allOf(About.class), null, null);
- Returns:
- configuration information, as a tree for grouping some configuration by sections.
-
configuration
Returns a subset of the information about the current Apache SIS running environment.- Parameters:
sections
- the section for which information are desired.locale
- the locale to use for formatting the texts in the tree, ornull
for the default.timezone
- the timezone to use for formatting the dates, ornull
for the default.- Returns:
- configuration information, as a tree for grouping some configuration by sections.
-