public class SnmpAttribute extends AbstractCollectionAttribute
SnmpAttribute class.
Constructor and Description |
---|
SnmpAttribute(CollectionResource resource,
SnmpAttributeType type,
SnmpValue val)
Constructor for SnmpAttribute.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SnmpAttributeType |
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()
getType
|
SnmpValue |
getValue()
getValue
|
int |
hashCode()
hashCode
|
ThreadCategory |
log()
log
|
boolean |
shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.
|
void |
storeAttribute(Persister persister)
Stores the attribute using the persister.
|
String |
toString()
toString
|
void |
visit(CollectionSetVisitor visitor)
Visit this attribute
|
public SnmpAttribute(CollectionResource resource, SnmpAttributeType type, SnmpValue val)
Constructor for SnmpAttribute.
resource
- a CollectionResource
object.type
- a SnmpAttributeType
object.val
- a SnmpValue
object.public void visit(CollectionSetVisitor visitor)
visit
in interface CollectionAttribute
visit
in class AbstractCollectionAttribute
visitor
- a CollectionSetVisitor
object.public SnmpAttributeType getAttributeType()
getAttributeType
getAttributeType
in interface CollectionAttribute
getAttributeType
in class AbstractCollectionAttribute
SnmpAttributeType
object.public ThreadCategory log()
log
log
in class AbstractCollectionAttribute
ThreadCategory
object.public CollectionResource getResource()
getResource
getResource
in interface CollectionAttribute
getResource
in class AbstractCollectionAttribute
CollectionResource
object.public void storeAttribute(Persister persister)
storeAttribute
in interface CollectionAttribute
storeAttribute
in class AbstractCollectionAttribute
persister
- a org.opennms.netmgt.collectd.Persister
object.public String toString()
toString
public boolean shouldPersist(ServiceParameters params)
shouldPersist
in interface CollectionAttribute
shouldPersist
in class AbstractCollectionAttribute
params
- a ServiceParameters
object.public String getName()
getName
getName
in interface CollectionAttribute
getName
in class AbstractCollectionAttribute
String
object.public String getMetricIdentifier()
CollectionAttribute
public String getNumericValue()
getNumericValue
getNumericValue
in interface CollectionAttribute
getNumericValue
in class AbstractCollectionAttribute
String
object.public String getStringValue()
getStringValue
getStringValue
in interface CollectionAttribute
getStringValue
in class AbstractCollectionAttribute
String
object.Copyright © 2015. All Rights Reserved.