public class XmlCollectionAttribute extends AbstractCollectionAttribute implements CollectionAttribute
This is related with the configuration class XmlObject (the attribute to be stored on a RRD file).
Constructor and Description |
---|
XmlCollectionAttribute(XmlCollectionResource resource,
XmlCollectionAttributeType attribType,
String value)
Instantiates a new XML collection attribute.
|
Modifier and Type | Method and Description |
---|---|
CollectionAttributeType |
getAttributeType()
getAttributeType
|
String |
getMetricIdentifier()
Get the metric identifier for the attribute to be used for NRTG collection
|
String |
getName()
getName
|
String |
getNumericValue()
getNumericValue
|
CollectionResource |
getResource()
getResource
|
String |
getStringValue()
getStringValue
|
String |
getType()
Returns type of value (typically one of "counter", "gauge", "timeticks", "integer", "octetstring" - see NumericAttributeType)
|
protected ThreadCategory |
log()
Log.
|
boolean |
shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.
|
String |
toString() |
storeAttribute, visit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
storeAttribute, visit
public XmlCollectionAttribute(XmlCollectionResource resource, XmlCollectionAttributeType attribType, String value)
resource
- the resourceattribType
- the attribute typevalue
- the attribute valuepublic CollectionAttributeType getAttributeType()
AbstractCollectionAttribute
getAttributeType
getAttributeType
in interface CollectionAttribute
getAttributeType
in class AbstractCollectionAttribute
CollectionAttributeType
object.public String getName()
AbstractCollectionAttribute
getName
getName
in interface CollectionAttribute
getName
in class AbstractCollectionAttribute
String
object.public String getNumericValue()
AbstractCollectionAttribute
getNumericValue
getNumericValue
in interface CollectionAttribute
getNumericValue
in class AbstractCollectionAttribute
String
object.public CollectionResource getResource()
AbstractCollectionAttribute
getResource
getResource
in interface CollectionAttribute
getResource
in class AbstractCollectionAttribute
CollectionResource
object.public String getStringValue()
AbstractCollectionAttribute
getStringValue
getStringValue
in interface CollectionAttribute
getStringValue
in class AbstractCollectionAttribute
String
object.public boolean shouldPersist(ServiceParameters params)
AbstractCollectionAttribute
shouldPersist
in interface CollectionAttribute
shouldPersist
in class AbstractCollectionAttribute
params
- a ServiceParameters
object.public String getType()
CollectionAttribute
getType
in interface CollectionAttribute
protected ThreadCategory log()
log
in class AbstractCollectionAttribute
public String getMetricIdentifier()
CollectionAttribute
getMetricIdentifier
in interface CollectionAttribute
Copyright © 2015. All Rights Reserved.