public class RuntimeContainerProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_LOGSTASH_GELF_FQDN_HOSTNAME
Set this system property to a fully qualified hostname to use a fixed host name.
|
static String |
PROPERTY_LOGSTASH_GELF_HOSTNAME
Set this system property to a simple hostname to use a fixed host name.
|
static String |
PROPERTY_LOGSTASH_GELF_HOSTNAME_RESOLUTION_ORDER
Set this propery to
RESOLUTION_ORDER_LOCALHOST_NETWORK_FALLBACK or
RESOLUTION_ORDER_NETWORK_LOCALHOST_FALLBACK to control the hostname resolution order. |
static String |
PROPERTY_LOGSTASH_GELF_SKIP_HOSTNAME_RESOLUTION
Set this system property to
true to skip hosname resolution. |
static String |
RESOLUTION_ORDER_LOCALHOST_NETWORK_FALLBACK
Resolution order: First inspect the local host name, then try to get the host name from network devices.
|
static String |
RESOLUTION_ORDER_NETWORK_LOCALHOST_FALLBACK
Resolution order: First inspect the network devices to retrieve a host name, then try to get the host name from the local
host.
|
Modifier and Type | Method and Description |
---|---|
static String |
getProperty(String key,
String defaultValue)
Lookup property from (
System.getenv(String) and System.getProperty(String) as fallback. |
public static final String PROPERTY_LOGSTASH_GELF_HOSTNAME
public static final String PROPERTY_LOGSTASH_GELF_FQDN_HOSTNAME
public static final String PROPERTY_LOGSTASH_GELF_SKIP_HOSTNAME_RESOLUTION
true
to skip hosname resolution. The string unknown
will be used as
hostname.public static final String PROPERTY_LOGSTASH_GELF_HOSTNAME_RESOLUTION_ORDER
RESOLUTION_ORDER_LOCALHOST_NETWORK_FALLBACK
or
RESOLUTION_ORDER_NETWORK_LOCALHOST_FALLBACK
to control the hostname resolution order.public static final String RESOLUTION_ORDER_LOCALHOST_NETWORK_FALLBACK
public static final String RESOLUTION_ORDER_NETWORK_LOCALHOST_FALLBACK
public static String getProperty(String key, String defaultValue)
System.getenv(String)
and System.getProperty(String)
as fallback.key
- the property keydefaultValue
- the default valueCopyright © 2013–2023. All rights reserved.