Class CollectionResourceWrapper

    • Constructor Detail

      • CollectionResourceWrapper

        public CollectionResourceWrapper​(CollectionResource 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.
      • getResourceTypeName

        public String getResourceTypeName()
        Returns a string which indicates what type of resource. Will be one of "node" for the node level resource "if" for network interface resources "*" for all other resource types defined in the relevant config files, e.g. hrStorage
        Specified by:
        getResourceTypeName in interface CollectionResource
        Returns:
        a String object.
      • getInstance

        public String getInstance()
        Returns the name of the instance this CollectionResource represents. For node level resources, this will be null to indicate the default instance. For interface level resources, some label unique to the node (ifIndex probably). For Generic resources (e.g. the SNMP GenericIndexResource), this will be some identifying label, probably the index in the table. This value is used by the StorageStrategy implementations to figure out the label for the resource which is used in constructing its RRD directory.
        Specified by:
        getInstance in interface CollectionResource
        Returns:
        a String object.
      • getInterfaceLabel

        public String getInterfaceLabel()
        Returns a unique label for each resource depending on resource type. This label is the same label used when constructing the resource ID.
        Specified by:
        getInterfaceLabel in interface CollectionResource
        Returns:
        a String object.