| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_KEY_LOCAL_SERVER_ENABLED
Config-key controlling whether the local-server enabled. |
static String |
CONFIG_KEY_LOCAL_SERVER_PROCESS_ENABLED
Config-key controlling whether the separate local-server-process is launched. |
static String |
CONFIG_KEY_LOCAL_SERVER_PROCESS_MAX_HEAP_SIZE
Controls the value passed as
-Xmx
to the child-process, thus specifying the maximum heap size of the local-server's JVM. |
static String |
CONFIG_KEY_LOCAL_SERVER_PROCESS_START_TIMEOUT
Config-key controlling the timeout in milliseconds the primary (first launched) process waits for
the separate local-server-process to become available. |
static Pattern |
CONFIG_KEY_PATTERN_LOCAL_SERVER_PROCESS_VM_ARGS |
static boolean |
DEFAULT_LOCAL_SERVER_ENABLED
Default value for
CONFIG_KEY_LOCAL_SERVER_ENABLED. |
static boolean |
DEFAULT_LOCAL_SERVER_PROCESS_ENABLED
Default value for
CONFIG_KEY_LOCAL_SERVER_PROCESS_ENABLED |
static String |
DEFAULT_LOCAL_SERVER_PROCESS_MAX_HEAP_SIZE
Default value for
CONFIG_KEY_LOCAL_SERVER_PROCESS_MAX_HEAP_SIZE |
static long |
DEFAULT_LOCAL_SERVER_PROCESS_START_TIMEOUT
Default value for
CONFIG_KEY_LOCAL_SERVER_PROCESS_START_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLocalServerProcessMaxHeapSize() |
static long |
getLocalServerProcessStartTimeout()
Gets the timeout in milliseconds the primary (first launched) process waits for
the separate local-server-process to become available.
|
static List<String> |
getLocalServerProcessVmArgs() |
static Uid |
getProcessId() |
static boolean |
isLocalServerEnabled()
Is the local-server enabled?
|
static boolean |
isLocalServerProcessEnabled()
Should the separate local-server-process be launched?
|
public static final String CONFIG_KEY_LOCAL_SERVER_ENABLED
Config-key controlling whether the local-server enabled.public static final boolean DEFAULT_LOCAL_SERVER_ENABLED
CONFIG_KEY_LOCAL_SERVER_ENABLED.public static final String CONFIG_KEY_LOCAL_SERVER_PROCESS_ENABLED
Config-key controlling whether the separate local-server-process is launched.public static final boolean DEFAULT_LOCAL_SERVER_PROCESS_ENABLED
CONFIG_KEY_LOCAL_SERVER_PROCESS_ENABLEDpublic static final String CONFIG_KEY_LOCAL_SERVER_PROCESS_START_TIMEOUT
Config-key controlling the timeout in milliseconds the primary (first launched) process waits for
the separate local-server-process to become available.public static final long DEFAULT_LOCAL_SERVER_PROCESS_START_TIMEOUT
CONFIG_KEY_LOCAL_SERVER_PROCESS_START_TIMEOUTpublic static final String CONFIG_KEY_LOCAL_SERVER_PROCESS_MAX_HEAP_SIZE
-Xmx
to the child-process, thus specifying the maximum heap size of the local-server's JVM.
Possible values are everything understood by the JVM after the "-Xmx", for example:
This only has an effect, if CONFIG_KEY_LOCAL_SERVER_PROCESS_ENABLED is true.
public static final String DEFAULT_LOCAL_SERVER_PROCESS_MAX_HEAP_SIZE
CONFIG_KEY_LOCAL_SERVER_PROCESS_MAX_HEAP_SIZEpublic static final Pattern CONFIG_KEY_PATTERN_LOCAL_SERVER_PROCESS_VM_ARGS
public static boolean isLocalServerEnabled()
Controls, whether a TCP (HTTP+REST) server is started on localhost.
If false, it also prevents the local-server-process from being launched.
Thus in order to launch the local-server-process, both isLocalServerEnabled()
and isLocalServerProcessEnabled() must be true.
true, if the local-server should be listening; false otherwise.CONFIG_KEY_LOCAL_SERVER_ENABLEDpublic static boolean isLocalServerProcessEnabled()
Controls, whether a TCP (HTTP+REST) server is started in a separate process, i.e. whether the current process should launch a separate process.
If false, the local-server (if enabled)
runs inside the primary (first-launched) VM process.
Note: In order to launch the local-server-process, both isLocalServerEnabled()
and isLocalServerProcessEnabled() must be true.
true, if the local-server should be listening; false otherwise.CONFIG_KEY_LOCAL_SERVER_PROCESS_ENABLEDpublic static long getLocalServerProcessStartTimeout()
If the local-server does not get ready within this timeout, an exception is thrown.
CONFIG_KEY_LOCAL_SERVER_PROCESS_START_TIMEOUTpublic static String getLocalServerProcessMaxHeapSize()
public static List<String> getLocalServerProcessVmArgs()
public static Uid getProcessId()
Copyright © 2013–2019. All rights reserved.