Class GridCountLicenseHandler<T,​H>

  • All Implemented Interfaces:
    ch.exense.licensing.client.LicenseConsumer, ch.exense.licensing.client.LicenseConsumerProvider, step.grid.tokenpool.RegistrationCallback<T>
    Direct Known Subclasses:
    AgentCountLicenseHandler, TokenCountLicenseHandler

    public abstract class GridCountLicenseHandler<T,​H>
    extends ch.exense.licensing.client.SimpleLicenseConsumer
    implements step.grid.tokenpool.RegistrationCallback<T>
    • Nested Class Summary

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

        ch.exense.licensing.client.AbstractLicenseConsumer.RequestAndUsage
      • Nested classes/interfaces inherited from interface ch.exense.licensing.client.LicenseConsumer

        ch.exense.licensing.client.LicenseConsumer.UsageRequestBehavior
    • Field Summary

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

        detailedContext, licenseManager, shuttingDown
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void afterUnregistering​(java.util.List<T> valuesToRemove)  
      boolean beforeRegistering​(T value)  
      protected abstract H getHashable​(T value)  
      protected abstract ch.exense.licensing.model.Resource getResource()  
      java.util.List<ch.exense.licensing.model.Resource> getResourcesUsed()  
      abstract void initialize​(step.grid.GridImpl gridImpl)  
      • Methods inherited from class ch.exense.licensing.client.SimpleLicenseConsumer

        getConsumerId, getConsumerProviderId, initialize, setCustomerContexts
      • Methods inherited from class ch.exense.licensing.client.AbstractLicenseConsumer

        calculateAndMaybeCommit, calculateAndMaybeCommit, calculateAndMaybeCommit, calculateAndMaybeCommit, calculateUsage, commit_MustSynchronize, commit_MustSynchronize, createUsageCalculator, createUsageRequest, createUsageRequest, getDetailedContext, getGlobalGrants, getGlobalUsages, getUsageStrategy, onCommitUsage, setGlobalGrantsAndUsages, shutdown
      • Methods inherited from class java.lang.Object

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

      • GridCountLicenseHandler

        public GridCountLicenseHandler​(StepLicenseManager licenseManager)
    • Method Detail

      • getResource

        protected abstract ch.exense.licensing.model.Resource getResource()
      • getHashable

        protected abstract H getHashable​(T value)
      • getResourcesUsed

        public java.util.List<ch.exense.licensing.model.Resource> getResourcesUsed()
        Specified by:
        getResourcesUsed in interface ch.exense.licensing.client.LicenseConsumer
      • initialize

        public abstract void initialize​(step.grid.GridImpl gridImpl)
      • beforeRegistering

        public boolean beforeRegistering​(T value)
        Specified by:
        beforeRegistering in interface step.grid.tokenpool.RegistrationCallback<T>
      • afterUnregistering

        public void afterUnregistering​(java.util.List<T> valuesToRemove)
        Specified by:
        afterUnregistering in interface step.grid.tokenpool.RegistrationCallback<T>