Class StepLicenseUsageLogger

  • All Implemented Interfaces:
    ch.exense.licensing.client.LicenseUsageLogger

    public class StepLicenseUsageLogger
    extends ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
    • Nested Class Summary

      • Nested classes/interfaces inherited from class ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger

        ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger.SimpleInMemoryConsumptionsBackend
    • Field Summary

      • Fields inherited from class ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger

        clearOnStart, registry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init()  
      protected java.util.stream.Stream<ch.exense.licensing.model.ResourceUsage> loadLoggedResourceUsages()  
      protected void performClearOnStart()  
      protected void performLogging​(java.util.List<ch.exense.licensing.model.ResourceUsage> usages)  
      void setCollectionFactory​(step.core.collections.CollectionFactory collectionFactory)  
      • Methods inherited from class ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger

        aggregateAllResources, getAggregatedConsumption, isAuthoritative, isInitialized, process, shutdown, warn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StepLicenseUsageLogger

        public StepLicenseUsageLogger​(ch.exense.licensing.model.ResourceRegistry registry,
                                      StepConsumptionsFile consumptionsFile,
                                      boolean clearOnStart)
    • Method Detail

      • setCollectionFactory

        public void setCollectionFactory​(step.core.collections.CollectionFactory collectionFactory)
      • init

        public void init()
        Overrides:
        init in class ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
      • performClearOnStart

        protected void performClearOnStart()
        Specified by:
        performClearOnStart in class ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
      • loadLoggedResourceUsages

        protected java.util.stream.Stream<ch.exense.licensing.model.ResourceUsage> loadLoggedResourceUsages()
        Specified by:
        loadLoggedResourceUsages in class ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
      • performLogging

        protected void performLogging​(java.util.List<ch.exense.licensing.model.ResourceUsage> usages)
        Specified by:
        performLogging in class ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger