L - the type of the protocol specific location typically a subclass of NodeLocationT - the measurement typepublic final class MeasurementInstance<L,T extends MeasurementType<L>> extends Instance<L,T>
| Constructor and Description |
|---|
MeasurementInstance(ID id,
Name name,
AttributeLocation<L> attributeLocation,
T type) |
MeasurementInstance(MeasurementInstance<L,T> copy,
boolean disown) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAssociatedMetricId()
This returns this instance's associated metric ID.
|
void |
setAssociatedMetricId(String metricId)
This tells this instance what its metric ID should be.
|
getResource, getType, setResourcegetAttributeLocationgetNameaddProperty, equals, getID, getProperties, hashCode, isPersisted, removeProperty, setPersisted, toStringpublic MeasurementInstance(ID id, Name name, AttributeLocation<L> attributeLocation, T type)
public MeasurementInstance(MeasurementInstance<L,T> copy, boolean disown)
public String getAssociatedMetricId()
id of this measurement instance.
This method follows those rules - if there is such a property, its value is returned;
otherwise this instance's ID string is returned.public void setAssociatedMetricId(String metricId)
getAssociatedMetricId() for more details.metricId - the metric ID to be associated with this measurement instance. If this is
null or empty, the metric ID will be assumed to be the same as this instance's ID.Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.