public class PropertyUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HAWKULAR_APM_AGENT_FILE_EXTENSION_WHITELIST
Comma separated list of whitelisted file extensions.
|
static String |
HAWKULAR_APM_AGENT_STATE_EXPIRY_INTERVAL
The time interval (in milliseconds) between checks for expired trace states in the agent.
|
static String |
HAWKULAR_APM_BUILDSTAMP
Property specifying the build stamp (or service version), to be used in a client-side library
|
static String |
HAWKULAR_APM_COLLECTOR_BATCHSIZE
The maximum number of traces to batch before sending to the server.
|
static String |
HAWKULAR_APM_COLLECTOR_BATCHTHREADS
The thread pool size for reporting a batch of traces to the server.
|
static String |
HAWKULAR_APM_COLLECTOR_BATCHTIME
The maximum time (in milliseconds) before sending a batch of traces to the server.
|
static String |
HAWKULAR_APM_CONFIG_REFRESH
The refresh interval to check for updates to the transaction configuration.
|
static String |
HAWKULAR_APM_CONFIG_RETRY_INTERVAL
The retry interval used by an application attempting to obtain the collector configuration.
|
static String |
HAWKULAR_APM_CORS_ACCESS_CONTROL_ALLOW_HEADERS
List of extra CORS Access-Control-Allow-Headers, this list is added to predefined list of allowed headers.
|
static String |
HAWKULAR_APM_CORS_ALLOWED_ORIGINS
List of allowed CORS origins.
|
static String |
HAWKULAR_APM_KAFKA_CONSUMER_AUTO_COMMIT_INTERVAL
The interval (in milliseconds) between consumer auto commits.
|
static String |
HAWKULAR_APM_KAFKA_CONSUMER_SESSION_TIMEOUT
The kafka consumer session timeout (in milliseconds).
|
static String |
HAWKULAR_APM_KAFKA_MAX_POLL_RECORDS
The maximum number of records to retrieve when polling a topic.
|
static String |
HAWKULAR_APM_KAFKA_POLLING_INTERVAL
The standard polling interval (in milliseconds) used by processors.
|
static String |
HAWKULAR_APM_KAFKA_PRODUCER_RETRIES
The maximum number of retries when a producer send fails.
|
static String |
HAWKULAR_APM_LOG_JUL
Client side boolean property to indicate whether to log to java.util.logging.
|
static String |
HAWKULAR_APM_LOG_LEVEL
Client side logging level.
|
static String |
HAWKULAR_APM_PASSWORD
The password to use for accessing the APM server.
|
static String |
HAWKULAR_APM_PROCESSOR_LAST_RETRY_DELAY
The interval between retrying the processing of a batch of failed events for the last time before
giving up.
|
static String |
HAWKULAR_APM_PROCESSOR_MAX_RETRY_COUNT
The maximum number of retry attempts when processing a batch of events.
|
static String |
HAWKULAR_APM_PROCESSOR_RETRY_DELAY
The interval between retrying the processing of a batch of failed events.
|
static String |
HAWKULAR_APM_SERVICE_NAME
Property specifying the service name, to be used in a client-side library
|
static String |
HAWKULAR_APM_URI
The location of the APM server
|
static String |
HAWKULAR_APM_URI_PUBLISHER
If specified, the value for this property will override the HAWKULAR_APM_URI value
when publishing trace fragments.
|
static String |
HAWKULAR_APM_URI_SERVICES
If specified, the value for this property will override the HAWKULAR_APM_URI value
when accessing the services.
|
static String |
HAWKULAR_APM_USERNAME
The username to use for accessing the APM server.
|
static String |
HAWKULAR_PASSWORD
Password for authentication against Hawkular Services
|
static String |
HAWKULAR_TENANT |
static String |
HAWKULAR_URI
Location of the Hawkular Services
|
static String |
HAWKULAR_USERNAME
Username for authentication against Hawkular Services
|
static String |
KAFKA_PREFIX
The URI prefix to denote use of Kafka
|
static String |
OPENSHIFT_BUILD_NAME
Property specifying the env var name for the OpenShift build name.
|
static String |
OPENSHIFT_BUILD_NAMESPACE
Property specifying the env var name for the OpenShift build namespace.
|
| Constructor and Description |
|---|
PropertyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getHostAddress()
This method returns the host IP address on which the application is running.
|
static String |
getHostName()
This method returns the hostname on which the application is running.
|
static String |
getKafkaZookeeper()
See
ENV_KAFKA_ZOOKEEPER; |
static String |
getProperty(String name)
This method returns the named property, first checking the system properties
and if not found, checking the environment.
|
static String |
getProperty(String name,
String def)
This method returns the named property, first checking the system properties
and if not found, checking the environment.
|
static boolean |
getPropertyAsBoolean(String name)
This method returns the property as an integer value.
|
static Integer |
getPropertyAsInteger(String name)
This method returns the property as an integer value.
|
static Integer |
getPropertyAsInteger(String name,
Integer def)
This method returns the property as an integer value.
|
static boolean |
hasProperty(String name)
This method determines whether a property exists, as a system property
or environment variable.
|
public static final String HAWKULAR_TENANT
public static final String HAWKULAR_URI
public static final String HAWKULAR_USERNAME
public static final String HAWKULAR_PASSWORD
public static final String HAWKULAR_APM_URI
public static final String HAWKULAR_APM_URI_SERVICES
public static final String HAWKULAR_APM_URI_PUBLISHER
public static final String HAWKULAR_APM_USERNAME
public static final String HAWKULAR_APM_PASSWORD
public static final String HAWKULAR_APM_CONFIG_RETRY_INTERVAL
public static final String HAWKULAR_APM_CONFIG_REFRESH
public static final String HAWKULAR_APM_LOG_LEVEL
public static final String HAWKULAR_APM_LOG_JUL
public static final String HAWKULAR_APM_COLLECTOR_BATCHSIZE
public static final String HAWKULAR_APM_COLLECTOR_BATCHTIME
public static final String HAWKULAR_APM_COLLECTOR_BATCHTHREADS
public static final String HAWKULAR_APM_AGENT_STATE_EXPIRY_INTERVAL
public static final String HAWKULAR_APM_AGENT_FILE_EXTENSION_WHITELIST
public static final String HAWKULAR_APM_PROCESSOR_MAX_RETRY_COUNT
public static final String HAWKULAR_APM_PROCESSOR_RETRY_DELAY
public static final String HAWKULAR_APM_PROCESSOR_LAST_RETRY_DELAY
public static final String HAWKULAR_APM_KAFKA_POLLING_INTERVAL
public static final String HAWKULAR_APM_KAFKA_MAX_POLL_RECORDS
public static final String HAWKULAR_APM_KAFKA_PRODUCER_RETRIES
public static final String HAWKULAR_APM_KAFKA_CONSUMER_AUTO_COMMIT_INTERVAL
public static final String HAWKULAR_APM_KAFKA_CONSUMER_SESSION_TIMEOUT
public static final String HAWKULAR_APM_CORS_ALLOWED_ORIGINS
public static final String HAWKULAR_APM_CORS_ACCESS_CONTROL_ALLOW_HEADERS
public static final String KAFKA_PREFIX
public static final String HAWKULAR_APM_SERVICE_NAME
public static final String HAWKULAR_APM_BUILDSTAMP
public static final String OPENSHIFT_BUILD_NAME
public static final String OPENSHIFT_BUILD_NAMESPACE
public static boolean hasProperty(String name)
name - The namepublic static String getProperty(String name)
name - The namepublic static String getProperty(String name, String def)
name - The namedef - The default if not foundpublic static Integer getPropertyAsInteger(String name)
name - The property namepublic static Integer getPropertyAsInteger(String name, Integer def)
name - The property namedef - The optional default valuepublic static boolean getPropertyAsBoolean(String name)
public static String getHostName()
public static String getHostAddress()
public static String getKafkaZookeeper()
ENV_KAFKA_ZOOKEEPER;Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.