Class EvaluatePersisterFactory

    • Constructor Detail

      • EvaluatePersisterFactory

        public EvaluatePersisterFactory​(EvaluateStats stats)
        Instantiates a new evaluate persister factory.
        Parameters:
        stats - the evaluation statistics object
    • 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 a CollectionSet.
        Specified by:
        createPersister in interface PersisterFactory
        Parameters:
        params - used to determine if individual groups or resources in the collection set should be persisted
        repository - 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 a CollectionSet.
        Specified by:
        createPersister in interface PersisterFactory
        Parameters:
        params - used to determine if individual groups or resources in the collection set should be persisted
        repository - used to the RRD persisters to build the appropriate RRD structures
        dontPersistCounters - used to disable persistence for counters in order to try and avoid spikes
        forceStoreByGroup - forces the given CollectionSet to be persisted as a group
        dontReorderAttributes - 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 EvaluatePersister object when storeByGroup is enabled.
        Parameters:
        params - the service parameters
        repository - the repository
        dontPersistCounters - the don't persist counters
        Returns:
        the persister
      • createOneToOnePersister

        public Persister createOneToOnePersister​(ServiceParameters params,
                                                 RrdRepository repository,
                                                 boolean dontPersistCounters)
        Creates a new EvaluatePersister object when storeByGroup is disabled.
        Parameters:
        params - the service parameters
        repository - the repository
        dontPersistCounters - the don't persist counters
        Returns:
        the persister