public class LicenceChecker.ResCall extends Object implements tigase.stats.collector.provider.StatisticsUploader.ResultCallback
| Constructor and Description |
|---|
LicenceChecker.ResCall() |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Exception ex)
onFailure callback. |
void |
onSuccess(tigase.xml.Element result)
onSuccess callback resulting in reset of failed attempts
counter as well as switching to less strict licence checking which allows
running component for 10 days without successful execution. |
public void onFailure(Exception ex)
onFailure callback. If it's called on the cold run (i.e.
first execution) then immediately shut down the system; otherwise if
there were previously successful attempts to submit data we can assume
that this is not intentional thus allow less strict enforcement and run
the check for the consecutive 10 days each time resulting in increase of
failed attempts counter.
onFailure in interface tigase.stats.collector.provider.StatisticsUploader.ResultCallbackex - is a Exceptionpublic void onSuccess(tigase.xml.Element result)
onSuccess callback resulting in reset of failed attempts
counter as well as switching to less strict licence checking which allows
running component for 10 days without successful execution.
onSuccess in interface tigase.stats.collector.provider.StatisticsUploader.ResultCallbackresult - is a ElementCopyright © 2011–2014 Tigase. All rights reserved.