Class GangliaConfiguration
- java.lang.Object
-
- org.apache.camel.component.ganglia.GangliaConfiguration
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description GangliaConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(URI uri)
GangliaConfiguration
copy()
Returns a copy of this configurationinfo.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 servervoid
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 UNICASTvoid
setPort(int port)
Port for Ganglia servervoid
setPrefix(String prefix)
Prefix the metric name with this string and an underscore.void
setSlope(info.ganglia.gmetric4j.gmetric.GMetricSlope slope)
The slopevoid
setSpoofHostname(String spoofHostname)
Spoofing information IP:hostnamevoid
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 packetsvoid
setType(info.ganglia.gmetric4j.gmetric.GMetricType type)
The type of valuevoid
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()
-
-
-
Field Detail
-
DEFAULT_DESTINATION
public static final String DEFAULT_DESTINATION
- See Also:
- Constant Field Values
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
DEFAULT_MODE
public static final info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode DEFAULT_MODE
-
DEFAULT_TTL
public static final int DEFAULT_TTL
- See Also:
- Constant Field Values
-
DEFAULT_WIRE_FORMAT_31X
public static final boolean DEFAULT_WIRE_FORMAT_31X
- See Also:
- Constant Field Values
-
DEFAULT_GROUP_NAME
public static final String DEFAULT_GROUP_NAME
- See Also:
- Constant Field Values
-
DEFAULT_METRIC_NAME
public static final String DEFAULT_METRIC_NAME
- See Also:
- Constant Field Values
-
DEFAULT_TYPE
public static final info.ganglia.gmetric4j.gmetric.GMetricType DEFAULT_TYPE
-
DEFAULT_SLOPE
public static final info.ganglia.gmetric4j.gmetric.GMetricSlope DEFAULT_SLOPE
-
DEFAULT_UNITS
public static final String DEFAULT_UNITS
- See Also:
- Constant Field Values
-
DEFAULT_TMAX
public static final int DEFAULT_TMAX
- See Also:
- Constant Field Values
-
DEFAULT_DMAX
public static final int DEFAULT_DMAX
- See Also:
- Constant Field Values
-
-
Method Detail
-
copy
public GangliaConfiguration copy()
Returns a copy of this configuration
-
configure
public void configure(URI uri)
-
createGMetric
public info.ganglia.gmetric4j.gmetric.GMetric createGMetric()
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
Host name for Ganglia server
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
Port for Ganglia server
-
getMode
public info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode getMode()
-
setMode
public void setMode(info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode mode)
Send the UDP metric packets using MULTICAST or UNICAST
-
getTtl
public int getTtl()
-
setTtl
public void setTtl(int ttl)
If using multicast, set the TTL of the packets
-
getWireFormat31x
public boolean getWireFormat31x()
-
setWireFormat31x
public void setWireFormat31x(boolean wireFormat31x)
Use the wire format of Ganglia 3.1.0 and later versions. Set this to false to use Ganglia 3.0.x or earlier.
-
getSpoofHostname
public String getSpoofHostname()
-
setSpoofHostname
public void setSpoofHostname(String spoofHostname)
Spoofing information IP:hostname
-
getGroupName
public String getGroupName()
-
setGroupName
public void setGroupName(String groupName)
The group that the metric belongs to.
-
getPrefix
public String getPrefix()
-
setPrefix
public void setPrefix(String prefix)
Prefix the metric name with this string and an underscore.
-
getMetricName
public String getMetricName()
-
setMetricName
public void setMetricName(String metricName)
The name to use for the metric.
-
getType
public info.ganglia.gmetric4j.gmetric.GMetricType getType()
-
setType
public void setType(info.ganglia.gmetric4j.gmetric.GMetricType type)
The type of value
-
getSlope
public info.ganglia.gmetric4j.gmetric.GMetricSlope getSlope()
-
setSlope
public void setSlope(info.ganglia.gmetric4j.gmetric.GMetricSlope slope)
The slope
-
getUnits
public String getUnits()
-
setUnits
public void setUnits(String units)
Any unit of measurement that qualifies the metric, e.g. widgets, litres, bytes. Do not include a prefix such as k (kilo) or m (milli), other tools may scale the units later. The value should be unscaled.
-
isWireFormat31x
public boolean isWireFormat31x()
-
getTmax
public int getTmax()
-
setTmax
public void setTmax(int tmax)
Maximum time in seconds that the value can be considered current. After this, Ganglia considers the value to have expired.
-
getDmax
public int getDmax()
-
setDmax
public void setDmax(int dmax)
Minumum time in seconds before Ganglia will purge the metric value if it expires. Set to 0 and the value will remain in Ganglia indefinitely until a gmond agent restart.
-
-