saker.build Documentation TaskDoc JavaDoc Packages
public class PropertyNames
Class for containing system property names that can configure the Saker runtime.

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.

Fields
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.
Methods
public static String
getProperty(String propertyname)
Gets the JVM level property with the given name.
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.

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.

saker.build 0.8.15
public static final String PROPERTY_DEFAULT_EXCEPTION_FORMAT = "saker.build.log.exception.default.format"
The default exception format used by the SakerLog utility class.

The value should be any of the SakerLog.CommonExceptionFormat enumeration names.

saker.build 0.8.16
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.

The specified storage directory will be used when not specified otherwise when creating build 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.

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)
 
public static final String PROPERTY_SAKER_OSNATIVE_LIBRARYPATH = "saker.osnative.librarypath"
Property name for specifying the extraction directory for embedded native dynamic libraries.

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.

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.

Allowed values are weak and soft. Character case is ignored. Default value is soft.

public static String getProperty(String propertyname)
Gets the JVM level property with the given name.

This method will retrieve System.getProperty(String) for the specified name and return it if non-null.

Then System.getenv(String) will be retrieved with the '.' characters replaced to '_' in the property name for compatibility. If non-null, that will be returned.

If the above fails, null is returned.

propertynameThe property name.
The property value or null if not defined.