public class CollectionSetBuilder extends Object
CollectionSet
.
Many of the existing collectors end up implementing their collections,
attributes and resource types. This class is intended to replace those
and provide a common means for building the collection sets.Constructor and Description |
---|
CollectionSetBuilder(CollectionAgent agent) |
public CollectionSetBuilder(CollectionAgent agent)
public CollectionSetBuilder withStatus(CollectionStatus status)
public CollectionSetBuilder withTimestamp(Date timestamp)
public CollectionSetBuilder withGauge(Resource resource, String group, String name, Number value)
public CollectionSetBuilder withCounter(Resource resource, String group, String name, Number value)
public CollectionSetBuilder withNumericAttribute(Resource resource, String group, String name, Number value, AttributeType type)
public CollectionSetBuilder withStringAttribute(Resource resource, String group, String name, String value)
public CollectionSetBuilder withIdentifiedNumericAttribute(Resource resource, String group, String name, Number value, AttributeType type, String metricId)
public CollectionSetBuilder withIdentifiedStringAttribute(Resource resource, String group, String name, String value, String metricId)
public CollectionSetBuilder withAttribute(Resource resource, String group, String name, String value, AttributeType type)
public CollectionSetBuilder disableCounterPersistence(boolean disableCounterPersistence)
public CollectionSetBuilder withSequenceNumber(Long sequenceNumber)
public CollectionSetDTO build()
public static AbstractCollectionResource toCollectionResource(Resource resource, CollectionAgent agent)
public int getNumResources()
public int getNumAttributes()
Copyright © 2021. All rights reserved.