Class SingleResourceCollectionSet

  • All Implemented Interfaces:
    CollectionSet, CollectionVisitable

    public class SingleResourceCollectionSet
    extends AbstractCollectionSet
    This is a simple CollectionSet that is used to encapsulate the collection of a single resource. The status is initially set to ServiceCollector#COLLECTION_FAILED. It is up to the collector to set it to a different value upon collection completion.
    • Constructor Detail

      • SingleResourceCollectionSet

        public SingleResourceCollectionSet​(CollectionResource resource,
                                           Date timestamp)
    • Method Detail

      • visit

        public final void visit​(CollectionSetVisitor visitor)
        Description copied from interface: CollectionVisitable
        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)
        Parameters:
        visitor - a CollectionSetVisitor object.
      • getCollectionTimestamp

        public final Date getCollectionTimestamp()
        Description copied from interface: CollectionSet
        Returns the timestamp of when this data collection was taken. Used by thresholding.
        Returns: