@Bean(name="update-checker", parent=MessageRouter.class, active=true) public class UpdatesChecker extends ScheduledTask
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdatesChecker.ProductInfoIfc |
static class |
UpdatesChecker.UpdatedVersionDiscovered |
| Modifier and Type | Field and Description |
|---|---|
static String |
PRODUCTS_REQUEST_KEY |
static String |
VERSION_REQUEST_KEY |
component| Constructor and Description |
|---|
UpdatesChecker() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
protected void |
onUpdatedVersionDiscovered(UpdatesChecker.UpdatedVersionDiscovered event) |
static Optional<Version> |
retrieveCurrentVersionFromServer(Version currentVersion,
List<UpdatesChecker.ProductInfoIfc> products,
String url,
int timeoutInSeconds) |
void |
run() |
void |
setProductInfos(ArrayList<UpdatesChecker.ProductInfoIfc> productInfos) |
beanConfigurationChanged, beforeUnregistercancel, cancel, isCancelled, isScheduled, reset, setScheduledFuturepublic static final String VERSION_REQUEST_KEY
public static final String PRODUCTS_REQUEST_KEY
public static Optional<Version> retrieveCurrentVersionFromServer(Version currentVersion, List<UpdatesChecker.ProductInfoIfc> products, String url, int timeoutInSeconds)
public void initialize()
Initializableinitialize in interface Initializableinitialize in class ScheduledTaskpublic void run()
public void setProductInfos(ArrayList<UpdatesChecker.ProductInfoIfc> productInfos)
@HandleEvent protected void onUpdatedVersionDiscovered(UpdatesChecker.UpdatedVersionDiscovered event)
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.