Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DESTINATION |
static int |
DEFAULT_DMAX |
static String |
DEFAULT_GROUP_NAME |
static String |
DEFAULT_METRIC_NAME |
static info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode |
DEFAULT_MODE |
static int |
DEFAULT_PORT |
static info.ganglia.gmetric4j.gmetric.GMetricSlope |
DEFAULT_SLOPE |
static int |
DEFAULT_TMAX |
static int |
DEFAULT_TTL |
static info.ganglia.gmetric4j.gmetric.GMetricType |
DEFAULT_TYPE |
static String |
DEFAULT_UNITS |
static boolean |
DEFAULT_WIRE_FORMAT_31X |
Constructor and Description |
---|
GangliaConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
configure(URI uri) |
GangliaConfiguration |
copy()
Returns a copy of this configuration
|
info.ganglia.gmetric4j.gmetric.GMetric |
createGMetric() |
int |
getDmax() |
String |
getGroupName() |
String |
getHost() |
String |
getMetricName() |
info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode |
getMode() |
int |
getPort() |
String |
getPrefix() |
info.ganglia.gmetric4j.gmetric.GMetricSlope |
getSlope() |
String |
getSpoofHostname() |
int |
getTmax() |
int |
getTtl() |
info.ganglia.gmetric4j.gmetric.GMetricType |
getType() |
String |
getUnits() |
boolean |
getWireFormat31x() |
boolean |
isWireFormat31x() |
void |
setDmax(int dmax)
Minumum time in seconds before Ganglia will purge the metric value if it expires.
|
void |
setGroupName(String groupName)
The group that the metric belongs to.
|
void |
setHost(String host)
Host name for Ganglia server
|
void |
setMetricName(String metricName)
The name to use for the metric.
|
void |
setMode(info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode mode)
Send the UDP metric packets using MULTICAST or UNICAST
|
void |
setPort(int port)
Port for Ganglia server
|
void |
setPrefix(String prefix)
Prefix the metric name with this string and an underscore.
|
void |
setSlope(info.ganglia.gmetric4j.gmetric.GMetricSlope slope)
The slope
|
void |
setSpoofHostname(String spoofHostname)
Spoofing information IP:hostname
|
void |
setTmax(int tmax)
Maximum time in seconds that the value can be considered current.
|
void |
setTtl(int ttl)
If using multicast, set the TTL of the packets
|
void |
setType(info.ganglia.gmetric4j.gmetric.GMetricType type)
The type of value
|
void |
setUnits(String units)
Any unit of measurement that qualifies the metric, e.g.
|
void |
setWireFormat31x(boolean wireFormat31x)
Use the wire format of Ganglia 3.1.0 and later versions.
|
String |
toString() |
public static final String DEFAULT_DESTINATION
public static final int DEFAULT_PORT
public static final info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode DEFAULT_MODE
public static final int DEFAULT_TTL
public static final boolean DEFAULT_WIRE_FORMAT_31X
public static final String DEFAULT_GROUP_NAME
public static final String DEFAULT_METRIC_NAME
public static final info.ganglia.gmetric4j.gmetric.GMetricType DEFAULT_TYPE
public static final info.ganglia.gmetric4j.gmetric.GMetricSlope DEFAULT_SLOPE
public static final String DEFAULT_UNITS
public static final int DEFAULT_TMAX
public static final int DEFAULT_DMAX
public GangliaConfiguration copy()
public void configure(URI uri)
public info.ganglia.gmetric4j.gmetric.GMetric createGMetric()
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode getMode()
public void setMode(info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode mode)
public int getTtl()
public void setTtl(int ttl)
public boolean getWireFormat31x()
public void setWireFormat31x(boolean wireFormat31x)
public String getSpoofHostname()
public void setSpoofHostname(String spoofHostname)
public String getGroupName()
public void setGroupName(String groupName)
public String getPrefix()
public void setPrefix(String prefix)
public String getMetricName()
public void setMetricName(String metricName)
public info.ganglia.gmetric4j.gmetric.GMetricType getType()
public void setType(info.ganglia.gmetric4j.gmetric.GMetricType type)
public info.ganglia.gmetric4j.gmetric.GMetricSlope getSlope()
public void setSlope(info.ganglia.gmetric4j.gmetric.GMetricSlope slope)
public String getUnits()
public void setUnits(String units)
public boolean isWireFormat31x()
public int getTmax()
public void setTmax(int tmax)
public int getDmax()
public void setDmax(int dmax)
Apache Camel