Class BasePersister
- java.lang.Object
-
- org.opennms.netmgt.collection.support.AbstractCollectionSetVisitor
-
- org.opennms.netmgt.collection.api.AbstractPersister
-
- org.opennms.netmgt.collection.persistence.rrd.BasePersister
-
- All Implemented Interfaces:
CollectionSetVisitor
,Persister
- Direct Known Subclasses:
GroupPersister
,OneToOnePersister
public class BasePersister extends AbstractPersister
BasePersister class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
protected ResourceStorageDao
m_resourceStorageDao
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasePersister(ServiceParameters params, RrdRepository repository, RrdStrategy<?,?> rrdStrategy, ResourceStorageDao resourceStorageDao)
Constructor for BasePersister.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RrdPersistOperationBuilder
createBuilder(CollectionResource resource, java.lang.String name, java.util.Set<CollectionAttributeType> attributeTypes)
createBuilderboolean
getDontReorderAttributes()
RrdStrategy<?,?>
getRrdStrategy()
protected void
persistStringAttribute(ResourcePath path, java.lang.String key, java.lang.String value)
protected void
setBuilder(RrdPersistOperationBuilder builder)
void
setDontReorderAttributes(boolean dontReorderAttributes)
-
Methods inherited from class org.opennms.netmgt.collection.api.AbstractPersister
commitBuilder, completeAttribute, completeGroup, completeResource, getRepository, isIgnorePersist, 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
-
LOG
protected static final org.slf4j.Logger LOG
-
m_resourceStorageDao
protected final ResourceStorageDao m_resourceStorageDao
-
-
Constructor Detail
-
BasePersister
protected BasePersister(ServiceParameters params, RrdRepository repository, RrdStrategy<?,?> rrdStrategy, ResourceStorageDao resourceStorageDao)
Constructor for BasePersister.
- Parameters:
params
- aServiceParameters
object.repository
- aRrdRepository
object.
-
-
Method Detail
-
createBuilder
protected RrdPersistOperationBuilder createBuilder(CollectionResource resource, java.lang.String name, java.util.Set<CollectionAttributeType> attributeTypes)
createBuilder
- Parameters:
resource
- aCollectionResource
object.name
- aString
object.attributeTypes
- aSet
object.
-
setBuilder
protected void setBuilder(RrdPersistOperationBuilder builder)
-
persistStringAttribute
protected void persistStringAttribute(ResourcePath path, java.lang.String key, java.lang.String value) throws PersistException
- Specified by:
persistStringAttribute
in classAbstractPersister
- Throws:
PersistException
-
getRrdStrategy
public RrdStrategy<?,?> getRrdStrategy()
-
setDontReorderAttributes
public void setDontReorderAttributes(boolean dontReorderAttributes)
-
getDontReorderAttributes
public boolean getDontReorderAttributes()
-
-