Class CollectionResourceWrapper


  • public class CollectionResourceWrapper
    extends Object

    CollectionResourceWrapper class.

    Wraps a CollectionResource with some methods and caching for the efficient application of thresholds (without pulling thresholding code into CollectionResource itself) A fresh instance should be created for each collection cycle (assumptions are made based on that premise)
    Version:
    $Id: $
    Author:
    ranger
    • Method Detail

      • setCounterReset

        public void setCounterReset​(boolean counterReset)
      • getNodeId

        public int getNodeId()

        getNodeId

        Returns:
        a int.
      • getHostAddress

        public String getHostAddress()

        getHostAddress

        Returns:
        a String object.
      • getServiceName

        public String getServiceName()

        getServiceName

        Returns:
        a String object.
      • getDsLabel

        public String getDsLabel()

        getDsLabel

        Returns:
        a String object.
      • setDsLabel

        public void setDsLabel​(String dsLabel)

        setDsLabel

        Parameters:
        dsLabel - a String object.
      • getInstance

        public String getInstance()

        getInstance

        Returns:
        a String object.
      • getInstanceLabel

        public String getInstanceLabel()

        getInstanceLabel

        Returns:
        a String object.
      • getResourceTypeName

        public String getResourceTypeName()

        getResourceTypeName

        Returns:
        a String object.
      • getResourceId

        public ResourceId getResourceId()

        getResourceId

        Inspired by DefaultKscReportService

        Returns:
        a String object.
      • getIfLabel

        public String getIfLabel()

        getIfLabel

        Returns:
        a String object.
      • getIfIndex

        public String getIfIndex()

        getIfIndex

        Returns:
        a String object.
      • getIfInfoValue

        protected String getIfInfoValue​(String attribute)

        getIfInfoValue

        Parameters:
        attribute - a String object.
        Returns:
        a String object.
      • isLatencyResource

        public boolean isLatencyResource()
      • isNodeResource

        public boolean isNodeResource()

        isNodeResource

        Returns:
        a boolean.
      • isAnInterfaceResource

        public boolean isAnInterfaceResource()

        isAnInterfaceResource

        Returns:
        a boolean.
      • isValidInterfaceResource

        public boolean isValidInterfaceResource()

        isValidInterfaceResource

        Returns:
        a boolean.
      • getAttributeValue

        public Double getAttributeValue​(String ds)

        getAttributeValue

        Parameters:
        ds - a String object.
        Returns:
        a Double object.
      • getFieldValue

        public String getFieldValue​(String ds)

        getFieldValue

        Parameters:
        ds - a String object.
        Returns:
        a String object.
      • getSequenceNumber

        public Long getSequenceNumber()