Package com.lightbend.cinnamon.meta
Class Descriptor
- java.lang.Object
-
- com.lightbend.cinnamon.meta.Descriptor
-
public final class Descriptor extends java.lang.Object
General descriptor for metrics and events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Descriptor.Builder
static class
Descriptor.UnitType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor.Builder
builder()
Create a new descriptor builder, based on this descriptor.boolean
equals(java.lang.Object o)
static Descriptor
fromConfig(cinnamon.config.ExtendedConfig rootConfig, java.lang.String path)
java.util.Set<java.lang.String>
getCategories()
java.lang.String
getConfigPath()
java.lang.String
getGroupName()
java.util.Set<java.lang.String>
getHints()
java.lang.String
getKey()
java.lang.String
getName()
java.util.Map<java.lang.String,java.lang.String>
getTags()
java.lang.String
getUnitPluralSuffix()
java.lang.String
getUnitSuffix()
Descriptor.UnitType
getUnitType()
boolean
hasConfigPath()
boolean
hasGroupName()
int
hashCode()
boolean
hasKey()
boolean
hasName()
boolean
hasUnitPluralSuffix()
boolean
hasUnitSuffix()
boolean
isCustom()
boolean
isEnabled()
java.lang.String
toString()
-
-
-
Method Detail
-
hasConfigPath
public boolean hasConfigPath()
-
getConfigPath
public java.lang.String getConfigPath()
-
hasKey
public boolean hasKey()
-
getKey
public java.lang.String getKey()
-
hasName
public boolean hasName()
-
getName
public java.lang.String getName()
-
hasGroupName
public boolean hasGroupName()
-
getGroupName
public java.lang.String getGroupName()
-
getCategories
public java.util.Set<java.lang.String> getCategories()
-
getUnitType
public Descriptor.UnitType getUnitType()
-
hasUnitSuffix
public boolean hasUnitSuffix()
-
getUnitSuffix
public java.lang.String getUnitSuffix()
-
hasUnitPluralSuffix
public boolean hasUnitPluralSuffix()
-
getUnitPluralSuffix
public java.lang.String getUnitPluralSuffix()
-
getTags
public java.util.Map<java.lang.String,java.lang.String> getTags()
-
getHints
public java.util.Set<java.lang.String> getHints()
-
isEnabled
public boolean isEnabled()
-
isCustom
public boolean isCustom()
-
fromConfig
public static Descriptor fromConfig(cinnamon.config.ExtendedConfig rootConfig, java.lang.String path)
-
builder
public Descriptor.Builder builder()
Create a new descriptor builder, based on this descriptor.- Returns:
- new Descriptor.Builder to create a new descriptor
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-