Class SnmpCollectionResource

    • Constructor Detail

      • SnmpCollectionResource

        public SnmpCollectionResource​(ResourceType def)

        Constructor for SnmpCollectionResource.

        Parameters:
        def - a ResourceType object.
    • Method Detail

      • getOwnerName

        public java.lang.String getOwnerName()

        getOwnerName

        Specified by:
        getOwnerName in interface ResourceIdentifier
        Returns:
        a String object.
      • getSnmpIfType

        public abstract int getSnmpIfType()
        Returns ifType; is (but not sure if it should be) -1 for non interface type collections, otherwise the SNMP type of the interface. This field is used to match the ifType field of the group from datacollection-config.xml.
        Returns:
        a int.
      • getGroupType

        protected AttributeGroupType getGroupType​(java.lang.String groupName)
      • 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.
      • getGroups

        protected java.util.Collection<AttributeGroup> getGroups()

        getGroups

        Returns:
        a Collection object.