Class GangliaConfiguration

  • All Implemented Interfaces:
    Cloneable

    @UriParams
    public class GangliaConfiguration
    extends Object
    implements Cloneable
    • Constructor Detail

      • GangliaConfiguration

        public GangliaConfiguration()
    • Method Detail

      • 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.