public class LicenceChecker extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
LicenceChecker.ResCall
Implementation for handling results of uploading statistics.
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
failCount
Number of failed attempts to send the statistics
|
protected static int |
failCountLimit
Limit number of all possible attempts to send statistics
|
protected static Map<String,LicenceChecker> |
licenceCheckers
Factory methods for
LicenceChecker. |
protected static TimerTask |
licencePeriodicCheck
Timer task responsible for licence checking
|
protected static tigase.stats.collector.ElementSigner |
signer
DefaultElementSigner used to sing uploaded data
|
protected static ScheduledExecutorService |
timer
Executor service handling timed execution of licence checking
|
protected static tigase.stats.collector.provider.StatisticsUploader |
uploader
Uploader object using created signer to upload data
|
| Modifier and Type | Method and Description |
|---|---|
static LicenceChecker |
getLicenceChecker(String cmpName)
Creates a
LicenceChecker with default update
callback LicenceCheckerUpdateCallbackImpl for the
component which name was provided as parameter. |
static LicenceChecker |
getLicenceChecker(String cmpName,
LicenceCheckerUpdateCallback call)
Creates a
LicenceChecker with custom implementation
of LicenceCheckerUpdateCallback interface for the
component which name was provided as parameter. |
LicenceCheckerUpdateCallback |
getUpdateCall()
Return callback used to update statistics data for particular
licenceChecker
|
Date |
getValidUntil()
Returns date until which licence is valid.
|
protected static int failCount
protected static final int failCountLimit
protected static final tigase.stats.collector.ElementSigner signer
protected static tigase.stats.collector.provider.StatisticsUploader uploader
protected static ScheduledExecutorService timer
protected static TimerTask licencePeriodicCheck
protected static final Map<String,LicenceChecker> licenceCheckers
LicenceChecker.public static LicenceChecker getLicenceChecker(String cmpName)
LicenceChecker with default update
callback LicenceCheckerUpdateCallbackImpl for the
component which name was provided as parameter. Component name will be used
to find licence file with the pattern of
etc/${cmpName}.licence
cmpName - name of the component for which
LicenceChecker will be instantiated.LicenceChecker for the given cmpNamepublic static LicenceChecker getLicenceChecker(String cmpName, LicenceCheckerUpdateCallback call)
LicenceChecker with custom implementation
of LicenceCheckerUpdateCallback interface for the
component which name was provided as parameter. Component name will be used
to find licence file with the pattern of
etc/${cmpName}.licence
cmpName - name of the component for which
LicenceChecker will be instantiated.call - custom implementation of
LicenceCheckerUpdateCallbackLicenceChecker for the given cmpNamepublic Date getValidUntil()
public LicenceCheckerUpdateCallback getUpdateCall()
Copyright © 2011–2014 Tigase. All rights reserved.