Class MultiResourceCollectionSet<T extends CollectionResource>
- java.lang.Object
-
- org.opennms.netmgt.collection.support.AbstractCollectionSet
-
- org.opennms.netmgt.collection.support.MultiResourceCollectionSet<T>
-
- All Implemented Interfaces:
CollectionSet
,CollectionVisitable
public abstract class MultiResourceCollectionSet<T extends CollectionResource> extends AbstractCollectionSet
-
-
Constructor Summary
Constructors Constructor Description MultiResourceCollectionSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<T>
getCollectionResources()
java.util.Date
getCollectionTimestamp()
Returns the timestamp of when this data collection was taken.CollectionStatus
getStatus()
void
setCollectionResources(java.util.Set<T> collectionResources)
void
setCollectionTimestamp(java.util.Date timestamp)
void
setStatus(CollectionStatus status)
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)-
Methods inherited from class org.opennms.netmgt.collection.support.AbstractCollectionSet
ignorePersist
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.collection.api.CollectionSet
getSequenceNumber
-
-
-
-
Method Detail
-
getStatus
public final CollectionStatus getStatus()
-
setStatus
public final void setStatus(CollectionStatus status)
-
getCollectionResources
public final java.util.Set<T> getCollectionResources()
-
setCollectionResources
public final void setCollectionResources(java.util.Set<T> collectionResources)
-
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
- aCollectionSetVisitor
object.
-
getCollectionTimestamp
public final java.util.Date getCollectionTimestamp()
Description copied from interface:CollectionSet
Returns the timestamp of when this data collection was taken. Used by thresholding.- Returns:
-
setCollectionTimestamp
public final void setCollectionTimestamp(java.util.Date timestamp)
-
-