Class TcpPersisterFactory
- java.lang.Object
-
- org.opennms.netmgt.collection.persistence.tcp.TcpPersisterFactory
-
- All Implemented Interfaces:
PersisterFactory
public class TcpPersisterFactory extends Object implements PersisterFactory
-
-
Constructor Summary
Constructors Constructor Description TcpPersisterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Persister
createGroupPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters)
Creates a new TcpPersister object when storeByGroup is enabled.Persister
createOneToOnePersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters)
Creates a new TcpPersister object when storeByGroup is disabled.Persister
createPersister(ServiceParameters params, RrdRepository repository)
Creates a visitor that is used to persist attributes in aCollectionSet
.Persister
createPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters, boolean forceStoreByGroup, boolean dontReorderAttributes)
Creates a visitor that is used to persist attributes in aCollectionSet
.TcpOutputStrategy
getTcpStrategy()
void
setTcpStrategy(TcpOutputStrategy tcpStrategy)
-
-
-
Method Detail
-
createPersister
public Persister createPersister(ServiceParameters params, RrdRepository repository)
Description copied from interface:PersisterFactory
Creates a visitor that is used to persist attributes in aCollectionSet
.- Specified by:
createPersister
in interfacePersisterFactory
- Parameters:
params
- used to determine if individual groups or resources in the collection set should be persistedrepository
- used to the RRD persisters to build the appropriate RRD structures- Returns:
- a
Persister
that persists the attributes
-
createPersister
public Persister createPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters, boolean forceStoreByGroup, boolean dontReorderAttributes)
Description copied from interface:PersisterFactory
Creates a visitor that is used to persist attributes in aCollectionSet
.- Specified by:
createPersister
in interfacePersisterFactory
- Parameters:
params
- used to determine if individual groups or resources in the collection set should be persistedrepository
- used to the RRD persisters to build the appropriate RRD structuresdontPersistCounters
- used to disable persistence for counters in order to try and avoid spikesforceStoreByGroup
- forces the givenCollectionSet
to be persisted as a groupdontReorderAttributes
- store attributes in the order they are visited- Returns:
- a
Persister
that persists the attributes
-
createGroupPersister
public Persister createGroupPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters)
Creates a new TcpPersister object when storeByGroup is enabled.- Parameters:
params
- the service parametersrepository
- the repositorydontPersistCounters
- the don't persist counters- Returns:
- the persister
-
createOneToOnePersister
public Persister createOneToOnePersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters)
Creates a new TcpPersister object when storeByGroup is disabled.- Parameters:
params
- the service parametersrepository
- the repositorydontPersistCounters
- the don't persist counters- Returns:
- the persister
-
getTcpStrategy
public TcpOutputStrategy getTcpStrategy()
-
setTcpStrategy
public void setTcpStrategy(TcpOutputStrategy tcpStrategy)
-
-