@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, beforeUnregister
cancel, cancel, isCancelled, isScheduled, reset, setScheduledFuture
public 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()
Initializable
initialize
in interface Initializable
initialize
in class ScheduledTask
public void run()
public void setProductInfos(ArrayList<UpdatesChecker.ProductInfoIfc> productInfos)
@HandleEvent protected void onUpdatedVersionDiscovered(UpdatesChecker.UpdatedVersionDiscovered event)
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.