public abstract class AbstractHostPortReporterConfig extends AbstractMetricReporterConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
MACRO_HOST_ADDRESS |
static String |
MACRO_HOST_FQDN |
static String |
MACRO_HOST_NAME |
static String |
MACRO_HOST_NAME_SHORT |
durationunit, period, predicate, rateunit, timeunit| Constructor and Description |
|---|
AbstractHostPortReporterConfig() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<HostPort> |
getFullHostList() |
List<HostPort> |
getHostListAndStringList() |
List<HostPort> |
getHosts() |
String |
getHostsString() |
String |
getResolvedPrefix() |
List<HostPort> |
parseHostString() |
void |
setHosts(List<HostPort> hosts) |
void |
setHostsString(String hostsString) |
void |
setPrefix(String prefix)
Sets the prefix to be prepended to all metric names.
|
getDurationunit, getPeriod, getPredicate, getRateunit, getRealDurationunit, getRealRateunit, getRealTimeunit, getTimeunit, isClassAvailable, setDurationunit, setPeriod, setPredicate, setRateunit, setTimeunitpublic static final String MACRO_HOST_NAME
public static final String MACRO_HOST_ADDRESS
public static final String MACRO_HOST_FQDN
public static final String MACRO_HOST_NAME_SHORT
public String getHostsString()
public void setHostsString(String hostsString)
public String getResolvedPrefix()
public void setPrefix(String prefix)
Sets the prefix to be prepended to all metric names. The prefix may contain the variable references in the following format: ${macro_name}.
The following macros are supported:
MACRO_HOST_ADDRESSInetAddress.getHostAddress()MACRO_HOST_NAMEInetAddress.getHostName()MACRO_HOST_NAME_SHORTInetAddress.getHostName() up to first dotMACRO_HOST_FQDNInetAddress.getCanonicalHostName()All substituted values are made metric-safe
prefix - prefix valueCopyright © 2015 AddThis. All rights reserved.