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_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_USERNAME |
static String |
HAWKULAR_TENANT |
| 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.
|
public static final String HAWKULAR_TENANT
public static final String HAWKULAR_APM_URI
public static final String HAWKULAR_APM_USERNAME
public static final String HAWKULAR_APM_PASSWORD
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 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.