Package tigase.licence
Class LicenceCheckerUpdateCallbackImpl
java.lang.Object
tigase.licence.LicenceCheckerUpdateCallbackImpl
- All Implemented Interfaces:
LicenceCheckerUpdateCallback
public class LicenceCheckerUpdateCallbackImpl
extends Object
implements LicenceCheckerUpdateCallback
Default implementation of
LicenceCheckerUpdateCallback- Author:
- Wojciech Kapcia
-
Constructor Summary
ConstructorsConstructorDescriptionLicenceCheckerUpdateCallbackImpl(String cmpName) Constructs default implementation of handling updates of statistics data on per-component basis providing most basic statistics data about system. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdditional licence validation.Method responsible for obtaining additional component information to be submitted to the server.getID()Method returns unique identifier of a callbackMethod responsible for retrieving warning about missing licence.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.licence.LicenceCheckerUpdateCallback
getServerVerifiableMetrics
-
Constructor Details
-
LicenceCheckerUpdateCallbackImpl
Constructs default implementation of handling updates of statistics data on per-component basis providing most basic statistics data about system.- Parameters:
cmpName- - name of the component for which UpdateCallback should be constructed
-
-
Method Details
-
getID
Description copied from interface:LicenceCheckerUpdateCallbackMethod returns unique identifier of a callback- Specified by:
getIDin interfaceLicenceCheckerUpdateCallback- Returns:
-
getComponentAdditionalData
Description copied from interface:LicenceCheckerUpdateCallbackMethod responsible for obtaining additional component information to be submitted to the server.- Specified by:
getComponentAdditionalDatain interfaceLicenceCheckerUpdateCallback- Returns:
- object with updated StatisticsData
-
getMissingLicenseWarning
Description copied from interface:LicenceCheckerUpdateCallbackMethod responsible for retrieving warning about missing licence.- Specified by:
getMissingLicenseWarningin interfaceLicenceCheckerUpdateCallback- Returns:
- a value of
String
-
additionalValidation
Description copied from interface:LicenceCheckerUpdateCallbackAdditional licence validation.- Specified by:
additionalValidationin interfaceLicenceCheckerUpdateCallback- Parameters:
lic- licence- Returns:
trueif addiotional check passed and licence is valid.
-