Package step.plugins.licensing.grid
Class GridCountLicenseHandler<T,H>
- java.lang.Object
-
- ch.exense.licensing.client.AbstractLicenseConsumer
-
- ch.exense.licensing.client.SimpleLicenseConsumer
-
- step.plugins.licensing.grid.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>
-
-
Constructor Summary
Constructors Constructor Description GridCountLicenseHandler(StepLicenseManager licenseManager)
-
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
-
-
-
-
Constructor Detail
-
GridCountLicenseHandler
public GridCountLicenseHandler(StepLicenseManager licenseManager)
-
-
Method Detail
-
getResource
protected abstract ch.exense.licensing.model.Resource getResource()
-
getResourcesUsed
public java.util.List<ch.exense.licensing.model.Resource> getResourcesUsed()
- Specified by:
getResourcesUsed
in interfacech.exense.licensing.client.LicenseConsumer
-
initialize
public abstract void initialize(step.grid.GridImpl gridImpl)
-
beforeRegistering
public boolean beforeRegistering(T value)
- Specified by:
beforeRegistering
in interfacestep.grid.tokenpool.RegistrationCallback<T>
-
-