com.netflix.servo.tag
Class Tags

java.lang.Object
  extended by com.netflix.servo.tag.Tags

public final class Tags
extends java.lang.Object

Helper functions for working with tags and tag lists.


Method Summary
static java.lang.String intern(java.lang.String v)
          Intern strings used for tag keys or values.
static Tag intern(Tag t)
          Returns the canonical representation of a tag.
static Tag newTag(java.lang.String key, java.lang.String value)
          Create a new tag instance.
static Tag parseTag(java.lang.String tagString)
          Parse a string representing a tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

intern

public static java.lang.String intern(java.lang.String v)
Intern strings used for tag keys or values.


intern

public static Tag intern(Tag t)
Returns the canonical representation of a tag.


newTag

public static Tag newTag(java.lang.String key,
                         java.lang.String value)
Create a new tag instance.


parseTag

public static Tag parseTag(java.lang.String tagString)
Parse a string representing a tag. A tag string should have the format key=value. Whitespace at the ends of the key and value will be removed. Both the key and value must have at least one character.

Parameters:
tagString - string with encoded tag
Returns:
tag parsed from the string