Class AbstractEvaluatePersister
- java.lang.Object
-
- org.opennms.netmgt.collection.support.AbstractCollectionSetVisitor
-
- org.opennms.netmgt.collection.api.AbstractPersister
-
- org.opennms.netmgt.collection.persistence.evaluate.AbstractEvaluatePersister
-
- All Implemented Interfaces:
CollectionSetVisitor
,Persister
- Direct Known Subclasses:
EvaluateGroupPersister
,EvaluateSinglePersister
public abstract class AbstractEvaluatePersister extends AbstractPersister
The Class AbstractEvaluatePersister.- Author:
- Alejandro Galue
-
-
Field Summary
Fields Modifier and Type Field Description protected EvaluateStats
stats
The evaluation statistics.-
Fields inherited from class org.opennms.netmgt.collection.api.AbstractPersister
LOG
-
-
Constructor Summary
Constructors Constructor Description AbstractEvaluatePersister(EvaluateStats stats, ServiceParameters params, RrdRepository repository)
Instantiates a new evaluate persister.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getResourceId(CollectionResource resource)
Gets the resource id.boolean
isIgnorePersist()
isIgnorePersistprotected void
persistStringAttribute(ResourcePath path, java.lang.String key, java.lang.String value)
-
Methods inherited from class org.opennms.netmgt.collection.api.AbstractPersister
commitBuilder, completeAttribute, completeGroup, completeResource, getRepository, persistNumericAttribute, persistStringAttribute, popShouldPersist, pushShouldPersist, pushShouldPersist, pushShouldPersist, setBuilder, setIgnorePersist, setRepository, shouldPersist, storeAttribute, visitAttribute, visitGroup, visitResource
-
Methods inherited from class org.opennms.netmgt.collection.support.AbstractCollectionSetVisitor
completeCollectionSet, visitCollectionSet
-
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.CollectionSetVisitor
completeCollectionSet, visitCollectionSet
-
-
-
-
Field Detail
-
stats
protected EvaluateStats stats
The evaluation statistics.
-
-
Constructor Detail
-
AbstractEvaluatePersister
public AbstractEvaluatePersister(EvaluateStats stats, ServiceParameters params, RrdRepository repository)
Instantiates a new evaluate persister.- Parameters:
stats
- the evaluation statistics objectparams
- the service parametersrepository
- the repository
-
-
Method Detail
-
persistStringAttribute
protected void persistStringAttribute(ResourcePath path, java.lang.String key, java.lang.String value) throws PersistException
- Specified by:
persistStringAttribute
in classAbstractPersister
- Throws:
PersistException
-
isIgnorePersist
public boolean isIgnorePersist()
Description copied from class:AbstractPersister
isIgnorePersist
- Overrides:
isIgnorePersist
in classAbstractPersister
- Returns:
- a boolean.
-
getResourceId
protected java.lang.String getResourceId(CollectionResource resource)
Gets the resource id.- Parameters:
resource
- the resource- Returns:
- the resource id
-
-