public class TcaCollectionAttribute extends AbstractCollectionAttribute implements CollectionAttribute
Constructor and Description |
---|
TcaCollectionAttribute(TcaCollectionResource resource,
TcaCollectionAttributeType attribType,
String name,
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)
|
boolean |
shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.
|
String |
toString() |
log, storeAttribute, visit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
storeAttribute, visit
public TcaCollectionAttribute(TcaCollectionResource resource, TcaCollectionAttributeType attribType, String name, String value)
resource
- the resourceattribType
- the attribute typename
- the attribute namevalue
- 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
public String getMetricIdentifier()
CollectionAttribute
getMetricIdentifier
in interface CollectionAttribute
Copyright © 2015. All Rights Reserved.