public class PropertyUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
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 |
static String |
HAWKULAR_APM_CONFIG_RETRY_INTERVAL |
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 |
static String |
HAWKULAR_APM_LOG_LEVEL |
static String |
HAWKULAR_APM_PASSWORD |
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_URI |
static String |
HAWKULAR_APM_URI_PUBLISHER |
static String |
HAWKULAR_APM_URI_SERVICES |
static String |
HAWKULAR_APM_USERNAME |
static String |
HAWKULAR_TENANT |
static String |
KAFKA_PREFIX
The URI prefix to denote use of Kafka
|
| Constructor and Description |
|---|
PropertyUtil() |
| Modifier and Type | Method and Description |
|---|---|
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_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_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 KAFKA_PREFIX
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)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.