Class CollectionAttributeWrapper

    • Constructor Detail

      • CollectionAttributeWrapper

        public CollectionAttributeWrapper​(CollectionAttribute wrapped)
    • Method Detail

      • visit

        public void visit​(CollectionSetVisitor visitor)
        Provide a way to visit all the values in the CollectionSet, for any appropriate purposes (persisting, thresholding, or others) The expectation is that calling this method will ultimately call visitResource, visitGroup and visitAttribute (as appropriate)
        Specified by:
        visit in interface CollectionVisitable
        visitor - a CollectionSetVisitor object.
      • getStringValue

        public java.lang.String getStringValue()
        Get the value of the attribute as a String.
        Specified by:
        getStringValue in interface CollectionAttribute
        a String representing the attribute value
      • getNumericValue

        public java.lang.Number getNumericValue()
        Get the numeric value of the attribute.
        Specified by:
        getNumericValue in interface CollectionAttribute
        a Number object.
      • getName

        public java.lang.String getName()
        Gets the name of the attribute
        Specified by:
        getName in interface CollectionAttribute
        a name
      • getMetricIdentifier

        public java.lang.String getMetricIdentifier()
        Get the metric identifier for the attribute to be used for NRTG collection
        Specified by:
        getMetricIdentifier in interface CollectionAttribute
        the metric identifier
      • storeAttribute

        public void storeAttribute​(Persister persister)
        Stores the attribute using the persister. Not sure this should be here...
        Specified by:
        storeAttribute in interface CollectionAttribute
        persister - a org.opennms.netmgt.collectd.Persister object.
      • getAttributeType

        public CollectionAttributeType getAttributeType()
        Return the attribute type for this attribute. Not sure what an CollectionAttributeType is yet... please fill in if you do know
        Specified by:
        getAttributeType in interface CollectionAttribute
        a org.opennms.netmgt.collectd.CollectionAttributeType object.