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
        Parameters:
        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
        Returns:
        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
        Returns:
        a Number object.
      • getName

        public java.lang.String getName()
        Gets the name of the attribute
        Specified by:
        getName in interface CollectionAttribute
        Returns:
        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
        Returns:
        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
        Parameters:
        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
        Returns:
        a org.opennms.netmgt.collectd.CollectionAttributeType object.