Class NewtsPersister
- java.lang.Object
-
- org.opennms.netmgt.collection.support.AbstractCollectionSetVisitor
-
- org.opennms.netmgt.collection.api.AbstractPersister
-
- org.opennms.netmgt.collection.persistence.newts.NewtsPersister
-
- All Implemented Interfaces:
CollectionSetVisitor
,Persister
public class NewtsPersister extends AbstractPersister
Newts persistence strategy. Both string and numeric attributes are persisted viaNewtsPersistOperationBuilder
.- Author:
- jwhite
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.collection.api.AbstractPersister
LOG
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NewtsPersister(ServiceParameters params, RrdRepository repository, NewtsWriter newtsWriter, org.opennms.newts.api.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeGroup(AttributeGroup group)
completeGroupprotected void
persistStringAttribute(ResourcePath path, java.lang.String key, java.lang.String value)
void
visitGroup(AttributeGroup group)
visitGroup-
Methods inherited from class org.opennms.netmgt.collection.api.AbstractPersister
commitBuilder, completeAttribute, completeResource, getRepository, isIgnorePersist, persistNumericAttribute, persistStringAttribute, popShouldPersist, pushShouldPersist, pushShouldPersist, pushShouldPersist, setBuilder, setIgnorePersist, setRepository, shouldPersist, storeAttribute, visitAttribute, 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
-
-
-
-
Constructor Detail
-
NewtsPersister
protected NewtsPersister(ServiceParameters params, RrdRepository repository, NewtsWriter newtsWriter, org.opennms.newts.api.Context context)
-
-
Method Detail
-
visitGroup
public void visitGroup(AttributeGroup group)
visitGroup
- Specified by:
visitGroup
in interfaceCollectionSetVisitor
- Overrides:
visitGroup
in classAbstractPersister
- Parameters:
group
- aorg.opennms.netmgt.collectd.AttributeGroup
object.
-
persistStringAttribute
protected void persistStringAttribute(ResourcePath path, java.lang.String key, java.lang.String value) throws PersistException
- Specified by:
persistStringAttribute
in classAbstractPersister
- Throws:
PersistException
-
completeGroup
public void completeGroup(AttributeGroup group)
completeGroup
- Specified by:
completeGroup
in interfaceCollectionSetVisitor
- Overrides:
completeGroup
in classAbstractPersister
- Parameters:
group
- aorg.opennms.netmgt.collectd.AttributeGroup
object.
-
-