Package step.plugins.licensing.grid
Class TokenSecondsLicenseHandler
- java.lang.Object
-
- ch.exense.licensing.client.AbstractLicenseConsumer
-
- ch.exense.licensing.client.SimpleLicenseConsumer
-
- step.plugins.licensing.grid.TokenSecondsLicenseHandler
-
- All Implemented Interfaces:
ch.exense.licensing.client.LicenseConsumer
,ch.exense.licensing.client.LicenseConsumerProvider
,step.functions.execution.TokenLifecycleInterceptor
public class TokenSecondsLicenseHandler extends ch.exense.licensing.client.SimpleLicenseConsumer implements step.functions.execution.TokenLifecycleInterceptor
-
-
Constructor Summary
Constructors Constructor Description TokenSecondsLicenseHandler(StepLicenseManager licenseManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ch.exense.licensing.model.Resource>
getResourcesUsed()
void
onGetTokenHandle(java.lang.String tokenHandleId)
void
onReturnTokenHandle(java.lang.String tokenHandleId)
-
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
-
TokenSecondsLicenseHandler
public TokenSecondsLicenseHandler(StepLicenseManager licenseManager)
-
-
Method Detail
-
getResourcesUsed
public java.util.List<ch.exense.licensing.model.Resource> getResourcesUsed()
- Specified by:
getResourcesUsed
in interfacech.exense.licensing.client.LicenseConsumer
-
onGetTokenHandle
public void onGetTokenHandle(java.lang.String tokenHandleId) throws ch.exense.licensing.LicensingException
- Specified by:
onGetTokenHandle
in interfacestep.functions.execution.TokenLifecycleInterceptor
- Throws:
ch.exense.licensing.LicensingException
-
onReturnTokenHandle
public void onReturnTokenHandle(java.lang.String tokenHandleId)
- Specified by:
onReturnTokenHandle
in interfacestep.functions.execution.TokenLifecycleInterceptor
-
-