Package tigase.util.updater
Class UpdatesChecker
java.lang.Object
tigase.util.common.TimerTask
tigase.component.ScheduledTask
tigase.util.updater.UpdatesChecker
- All Implemented Interfaces:
Runnable
,ConfigurationChangedAware
,Initializable
,UnregisterAware
@Bean(name="update-checker",
parent=MessageRouter.class,
active=true)
public class UpdatesChecker
extends ScheduledTask
Describe class UpdatesChecker here.
Created: Fri Apr 18 09:35:32 2008
Created: Fri Apr 18 09:35:32 2008
- Author:
- Artur Hefczyc
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
-
Field Summary
Fields inherited from class tigase.component.ScheduledTask
component
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method will be called, when bean will be created, configured and ready to use.protected void
retrieveCurrentVersionFromServer
(Version currentVersion, List<UpdatesChecker.ProductInfoIfc> products, String url, int timeoutInSeconds) void
run()
void
setProductInfos
(ArrayList<UpdatesChecker.ProductInfoIfc> productInfos) Methods inherited from class tigase.component.ScheduledTask
beanConfigurationChanged, beforeUnregister
Methods inherited from class tigase.util.common.TimerTask
cancel, cancel, isCancelled, isScheduled, reset, setScheduledFuture
-
Field Details
-
VERSION_REQUEST_KEY
- See Also:
-
PRODUCTS_REQUEST_KEY
- See Also:
-
-
Constructor Details
-
UpdatesChecker
public UpdatesChecker()
-
-
Method Details
-
retrieveCurrentVersionFromServer
-
initialize
public void initialize()Description copied from interface:Initializable
Method will be called, when bean will be created, configured and ready to use.- Specified by:
initialize
in interfaceInitializable
- Overrides:
initialize
in classScheduledTask
-
run
public void run() -
setProductInfos
-
onUpdatedVersionDiscovered
@HandleEvent protected void onUpdatedVersionDiscovered(UpdatesChecker.UpdatedVersionDiscovered event)
-