These properties specify settings for the runtime that cannot be changed during the execution of the program.
For environment and build execution specific configuration, refer to the appropriate parameter classes.
public static final String | PROPERTY_COLLECT_RMI_STATISTICS = "saker.build.rmi.statistics.collect" Property name for signalling that RMI statistics should be collected and displayed for measurement purposes. |
public static final String | PROPERTY_DEFAULT_EXCEPTION_FORMAT = "saker.build.log.exception.default.format" The default exception format used by the SakerLog utility class. |
public static final String | PROPERTY_DEFAULT_STORAGE_DIRECTORY = "saker.build.storage.directory.default" Property name for specifying the default storage directory for build system environments. |
public static final String | PROPERTY_SAKER_COMPUTATION_TOKEN_COUNT = "saker.computation.token.count" Property name for to set the maximum amount of allocateable computation tokens for this JVM. |
public static final String | PROPERTY_SAKER_OSNATIVE_LIBRARYPATH = "saker.osnative.librarypath" Property name for specifying the extraction directory for embedded native dynamic libraries. |
public static final String | PROPERTY_SAKER_REFERENCE_POLICY = "saker.reference.policy" Property name for ReferencePolicy to determine what kind of references should be created for efficient
caching. |
public static String | getProperty( Gets the JVM level property with the given name. |
If this property is set, any RMI connection that is opened should collect statistics of their requests. This property name is just a hint that should allow better measurements and analysis. Some opened RMI connections may not support this property.
The value should be any of the SakerLog.CommonExceptionFormat enumeration names.
The specified storage directory will be used when not specified otherwise when creating build environments.
Increasing this value might cause the system to trash if too many tasks are running at the same time. Decreasing this value might cause the CPU to be underutilized.
The default value is the current logical processor count multiplied by 1.5, and rounded down. It is at least two. Effectively, this formula is used to calculate it:
Math.max(Runtime.getRuntime().availableProcessors() * 3 / 2, 2)
The native libraries have to be extracted to the local filesystem before they can be loaded to the JVM process. The directory specified will be used to extract these libraries.
Default value is determined from the system property java.io.tmpdir
, the temp directory for the
process.
Allowed values are weak
and soft
. Character case is ignored. Default value is
soft
.
This method will retrieve System.getProperty(null
.
Then System.getenv('.'
characters replaced to
'_'
in the property name for compatibility. If non-null
, that will be returned.
If the above fails, null
is returned.
null
if not defined.