Class CollectionSetDTO
- java.lang.Object
-
- org.opennms.netmgt.collection.dto.CollectionSetDTO
-
- All Implemented Interfaces:
CollectionSet,CollectionVisitable
public class CollectionSetDTO extends Object implements CollectionSet
-
-
Constructor Summary
Constructors Constructor Description CollectionSetDTO()CollectionSetDTO(CollectionAgent agent, CollectionStatus status, Date timestamp, Map<Resource,List<Attribute<?>>> attributesByResource, boolean disableCounterPersistence, Long sequenceNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DategetCollectionTimestamp()Returns the timestamp of when this data collection was taken.OptionalLonggetSequenceNumber()CollectionStatusgetStatus()inthashCode()booleanignorePersist()ignorePersistStringtoString()voidvisit(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)
-
-
-
Constructor Detail
-
CollectionSetDTO
public CollectionSetDTO()
-
CollectionSetDTO
public CollectionSetDTO(CollectionAgent agent, CollectionStatus status, Date timestamp, Map<Resource,List<Attribute<?>>> attributesByResource, boolean disableCounterPersistence, Long sequenceNumber)
-
-
Method Detail
-
getStatus
public CollectionStatus getStatus()
- Specified by:
getStatusin interfaceCollectionSet
-
ignorePersist
public boolean ignorePersist()
Description copied from interface:CollectionSetignorePersist
- Specified by:
ignorePersistin interfaceCollectionSet- Returns:
- a boolean.
-
getCollectionTimestamp
public Date getCollectionTimestamp()
Description copied from interface:CollectionSetReturns the timestamp of when this data collection was taken. Used by thresholding.- Specified by:
getCollectionTimestampin interfaceCollectionSet- Returns:
-
visit
public void visit(CollectionSetVisitor visitor)
Description copied from interface:CollectionVisitableProvide 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:
visitin interfaceCollectionVisitable- Parameters:
visitor- aCollectionSetVisitorobject.
-
getSequenceNumber
public OptionalLong getSequenceNumber()
- Specified by:
getSequenceNumberin interfaceCollectionSet- Returns:
- an optional containing the sequence number of the source this collection set was built from if applicable, otherwise an empty optional
-
-