/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, int tagValue) { tagTable.put(tagName, Integer.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, byte tagValue) { tagTable.put(tagName, Byte.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, short tagValue) { tagTable.put(tagName, Short.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, short tagValue) { tagTable.put(tagName, new Short(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, long tagValue) { tagTable.put(tagName, Long.valueOf(tagValue)); }
public void testCopy() { TagMap tags = new TagMap(); tags.put("tagkey", "tagval"); MetricMap metrics = new MetricMap(); metrics.put("metrickey", 123.4); OutputRecord r = new OutputRecord(tags, metrics); assertEquals(tags, r.getTagsCopy()); assertNotSame(tags, r.getTagsCopy()); assertEquals(metrics, r.getMetricsCopy()); assertNotSame(metrics, r.getMetricsCopy()); } }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, int tagValue) { tagTable.put(tagName, Integer.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, short tagValue) { tagTable.put(tagName, Short.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, int tagValue) { tagTable.put(tagName, Integer.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, long tagValue) { tagTable.put(tagName, Long.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, int tagValue) { tagTable.put(tagName, Integer.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, byte tagValue) { tagTable.put(tagName, Byte.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, long tagValue) { tagTable.put(tagName, Long.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, int tagValue) { tagTable.put(tagName, new Integer(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, short tagValue) { tagTable.put(tagName, Short.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, short tagValue) { tagTable.put(tagName, Short.valueOf(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, long tagValue) { tagTable.put(tagName, Long.valueOf(tagValue)); }
public void testCopy() { TagMap tags = new TagMap(); tags.put("tagkey", "tagval"); MetricMap metrics = new MetricMap(); metrics.put("metrickey", 123.4); OutputRecord r = new OutputRecord(tags, metrics); assertEquals(tags, r.getTagsCopy()); assertNotSame(tags, r.getTagsCopy()); assertEquals(metrics, r.getMetricsCopy()); assertNotSame(metrics, r.getMetricsCopy()); } }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, byte tagValue) { tagTable.put(tagName, new Byte(tagValue)); }
/** * Sets the named tag to the specified value. * * @param tagName name of the tag * @param tagValue new value of the tag * @throws MetricsException if the tagName conflicts with the configuration */ public void setTag(String tagName, byte tagValue) { tagTable.put(tagName, Byte.valueOf(tagValue)); }