public static class MonitorConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
MonitorConfig.Builder(MonitorConfig config)
Create a new builder initialized with the specified config.
|
MonitorConfig.Builder(java.lang.String name)
Create a new builder initialized with the specified name.
|
Modifier and Type | Method and Description |
---|---|
MonitorConfig |
build()
Create the monitor config object.
|
java.lang.String |
getName()
Get the name for this monitor config.
|
PublishingPolicy |
getPublishingPolicy()
Get the publishingPolicy.
|
java.util.List<Tag> |
getTags()
Get the list of tags for this monitor config.
|
MonitorConfig.Builder |
withPublishingPolicy(PublishingPolicy policy)
Add the publishing policy to the config.
|
MonitorConfig.Builder |
withTag(java.lang.String key,
java.lang.String val)
Add a tag to the config.
|
MonitorConfig.Builder |
withTag(Tag tag)
Add a tag to the config.
|
MonitorConfig.Builder |
withTags(java.util.Collection<Tag> tagCollection)
Add all tags in the list to the config.
|
MonitorConfig.Builder |
withTags(SmallTagMap.Builder tagsBuilder)
Add all tags from a given SmallTagMap.
|
MonitorConfig.Builder |
withTags(TagList tagList)
Add all tags in the list to the config.
|
public MonitorConfig.Builder(MonitorConfig config)
public MonitorConfig.Builder(java.lang.String name)
public MonitorConfig.Builder withTag(java.lang.String key, java.lang.String val)
public MonitorConfig.Builder withTag(Tag tag)
public MonitorConfig.Builder withTags(TagList tagList)
public MonitorConfig.Builder withTags(java.util.Collection<Tag> tagCollection)
public MonitorConfig.Builder withTags(SmallTagMap.Builder tagsBuilder)
public MonitorConfig.Builder withPublishingPolicy(PublishingPolicy policy)
public MonitorConfig build()
public java.lang.String getName()
public java.util.List<Tag> getTags()
public PublishingPolicy getPublishingPolicy()