Package org.collectd.api

Examples of org.collectd.api.ValueList.addValue()


    vl.setPluginInstance (plugin_instance);
    vl.setType ("memory");

    if (mem_init >= 0)
    {
      vl.addValue (mem_init);
      vl.setTypeInstance ("init");
      Collectd.dispatchValues (vl);
      vl.clearValues ();
    }
View Full Code Here


      vl.clearValues ();
    }

    if (mem_used >= 0)
    {
      vl.addValue (mem_used);
      vl.setTypeInstance ("used");
      Collectd.dispatchValues (vl);
      vl.clearValues ();
    }
View Full Code Here

      vl.clearValues ();
    }

    if (mem_committed >= 0)
    {
      vl.addValue (mem_committed);
      vl.setTypeInstance ("committed");
      Collectd.dispatchValues (vl);
      vl.clearValues ();
    }
View Full Code Here

      vl.clearValues ();
    }

    if (mem_max >= 0)
    {
      vl.addValue (mem_max);
      vl.setTypeInstance ("max");
      Collectd.dispatchValues (vl);
      vl.clearValues ();
    }
  } /* }}} void submit */
 
View Full Code Here

        vl.setInterval(interval);
        vl.setTime(now);
        vl.setPlugin(PLUGIN);
        vl.setPluginInstance(ValueListTest.class.getName());
        for (int i=0; i<values.length; i++) {
            vl.addValue(new Double(values[i]));
        }
        return vl;
    }

    private void dummyAssert(ValueList vl) {
View Full Code Here

            }
        }
        vl.setPluginInstance(pluginInstance + "-" + beanName);
        vl.setType(attr.getTypeName());
        vl.setTypeInstance(typeInstance);
        vl.addValue(val);
        _sender.dispatch(vl);
    }

    public void collect(MBeanQuery query, ObjectName name) throws Exception {
        MBeanServerConnection conn = _sender.getMBeanServerConnection();
View Full Code Here

    }

    public void testGauge() throws Exception {
        ValueList vl = newValueList();
        for (double val : dvals) {
            vl.addValue(new Double(val));
        }
        _sender.dispatch(vl);
        String host = vl.getHost();
        long time = vl.getTime() / 1000;
        flush();
View Full Code Here

    }

    public void testCounter() throws Exception {
        ValueList vl = newValueList();
        for (long val : lvals) {
            vl.addValue(new Long(val));
        }
        _sender.dispatch(vl);
        String host = vl.getHost();
        long time = vl.getTime() / 1000;
        flush();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.