public class Foundation
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
CONFIG_FILE |
System property that can be specified for the home
process and will be propagated to worker processes to
name the config properties file.
|
static java.lang.String |
CONFIG_FILE_DEF |
Default config file.
|
static java.lang.String |
HOME |
System property that defines the z2 home folder.
|
static java.lang.String |
HOME_CLUSTER |
In order to provide cluster wide distinguishing and grouping of z2 processes they
may share or distringuish by a cluster id
|
static java.lang.String |
HOME_CONCURRENCY |
pre-configured process concurrency to be set on the default
application thread pool (sys prop)
|
static java.lang.String |
HOME_LAYOUT_BIN |
Home layout folder for main bin artifacts to start z2
|
static java.lang.String |
HOME_LAYOUT_COMPONENT |
The home layout to start (sys prop)
|
static java.lang.String |
HOME_LAYOUT_DATA |
file system layout: Folder for local data.
|
static java.lang.String |
HOME_LAYOUT_LOCAL |
Home layout folder for local pre-built repo
|
static java.lang.String |
HOME_LAYOUT_REPOS |
file system layout: Folder for repo caches.
|
static java.lang.String |
HOME_LAYOUT_WORK |
file system layout: Folder for temporary data.
|
static java.lang.String |
LANGUAGE_LEVEL |
Language level of the built-in Java compiler.
|
static java.lang.String |
MODE |
A z2 process may be started in development mode, if setting this
system property to the value
development . |
static java.lang.String |
MODE_DEVELOPMENT |
Value to system propery
MODE for the development mode |
static java.lang.String |
OFFLINE |
The system can be run in offline mode.
|
static java.lang.String |
PROCESS_WORKER |
Component name of the worker process, passed as system property to a child process
|
static java.lang.String |
PROXY_AUTH |
If set to
BASIC (case independent), the all system properties <protocol>.proxyUser and <protocol>.proxyPassword will be considered
for basic authentication to a proxy server. |
Constructor | Description |
---|---|
Foundation() |
Modifier and Type | Method | Description |
---|---|---|
static long |
getCoreBuildVersion() |
Returns the core build number.
|
static java.io.File |
getHomeFolder() |
Determine the home folder, that is, the place where repositories will be auto-discovered
|
static java.util.Properties |
getProperties() |
|
static boolean |
isDevelopmentMode() |
Returns true if and only if the system is running in development mode.
|
static boolean |
isOfflineMode() |
Convenience check for the boolean system property
OFFLINE . |
static boolean |
isWorker() |
public static final java.lang.String HOME
public static final java.lang.String MODE
development
.
In development mode the runtime may support development specific features like test code compilation
public static final java.lang.String MODE_DEVELOPMENT
MODE
for the development modepublic static final java.lang.String OFFLINE
true
to run in
offline mode. Defaults to false
public static final java.lang.String CONFIG_FILE
public static final java.lang.String CONFIG_FILE_DEF
public static final java.lang.String HOME_LAYOUT_COMPONENT
public static final java.lang.String HOME_LAYOUT_WORK
public static final java.lang.String HOME_LAYOUT_REPOS
public static final java.lang.String HOME_LAYOUT_DATA
public static final java.lang.String HOME_CONCURRENCY
public static final java.lang.String PROCESS_WORKER
public static final java.lang.String HOME_CLUSTER
public static final java.lang.String LANGUAGE_LEVEL
public static final java.lang.String PROXY_AUTH
BASIC
(case independent), the all system properties <protocol>.proxyUser and <protocol>.proxyPassword will be considered
for basic authentication to a proxy server.public static final java.lang.String HOME_LAYOUT_LOCAL
public static final java.lang.String HOME_LAYOUT_BIN
public static long getCoreBuildVersion()
public static boolean isDevelopmentMode()
MODE
.
The method returns true only if this property is set to "development" (case-sensitive check!), any other value (including empty or null) yields to false.public static java.util.Properties getProperties()
public static boolean isWorker()
public static boolean isOfflineMode()
OFFLINE
.public static java.io.File getHomeFolder()