Package step.plugins.licensing.log
Class StepLicenseUsageLogger
- java.lang.Object
-
- ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
-
- step.plugins.licensing.log.StepLicenseUsageLogger
-
- All Implemented Interfaces:
ch.exense.licensing.client.LicenseUsageLogger
public class StepLicenseUsageLogger extends ch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
-
-
Constructor Summary
Constructors Constructor Description StepLicenseUsageLogger(ch.exense.licensing.model.ResourceRegistry registry, StepConsumptionsFile consumptionsFile, boolean clearOnStart)
-
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)
-
-
-
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 classch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
-
performClearOnStart
protected void performClearOnStart()
- Specified by:
performClearOnStart
in classch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
-
loadLoggedResourceUsages
protected java.util.stream.Stream<ch.exense.licensing.model.ResourceUsage> loadLoggedResourceUsages()
- Specified by:
loadLoggedResourceUsages
in classch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
-
performLogging
protected void performLogging(java.util.List<ch.exense.licensing.model.ResourceUsage> usages)
- Specified by:
performLogging
in classch.exense.licensing.client.AbstractAuthoritativeLicenseUsageLogger
-
-