ehcache

net.sf.ehcache.util
Class UpdateChecker

java.lang.Object
  extended by java.util.TimerTask
      extended by net.sf.ehcache.util.UpdateChecker
All Implemented Interfaces:
Runnable

public class UpdateChecker
extends TimerTask

Check for new Ehcache updates and alert users if an update is available

Author:
Hung Huynh

Constructor Summary
UpdateChecker()
          Construct update checker object
 
Method Summary
 void checkForUpdate()
          This method ensures that there will be no exception thrown.
protected  void putUrlSafe(String key, String value)
          Add param to map, value is url-encoded
 void run()
          Run the update check
protected  void updateParams()
          hook point to update any params before update check
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateChecker

public UpdateChecker()
Construct update checker object

Method Detail

putUrlSafe

protected void putUrlSafe(String key,
                          String value)
Add param to map, value is url-encoded

Parameters:
key -
value -

run

public void run()
Run the update check

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

checkForUpdate

public void checkForUpdate()
This method ensures that there will be no exception thrown.


updateParams

protected void updateParams()
hook point to update any params before update check


ehcache

Copyright 2001-2014, Terracotta, Inc.