Class CollectionSetDTO

    • Constructor Detail

      • CollectionSetDTO

        public CollectionSetDTO()
      • CollectionSetDTO

        public CollectionSetDTO​(CollectionAgent agent,
                                CollectionStatus status,
                                java.util.Date timestamp,
                                java.util.Map<Resource,​java.util.List<Attribute<?>>> attributesByResource,
                                boolean disableCounterPersistence,
                                java.lang.Long sequenceNumber)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getCollectionTimestamp

        public java.util.Date getCollectionTimestamp()
        Description copied from interface: CollectionSet
        Returns the timestamp of when this data collection was taken. Used by thresholding.
        Specified by:
        getCollectionTimestamp in interface CollectionSet
        Returns:
      • visit

        public 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)
        Specified by:
        visit in interface CollectionVisitable
        Parameters:
        visitor - a CollectionSetVisitor object.
      • getSequenceNumber

        public java.util.OptionalLong getSequenceNumber()
        Specified by:
        getSequenceNumber in interface CollectionSet
        Returns:
        an optional containing the sequence number of the source this collection set was built from if applicable, otherwise an empty optional