|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.uadetector.datastore.AbstractUpdateOperation
public abstract class AbstractUpdateOperation
Provides a basic implementation to update UAS data in the background when calling run().
| Field Summary |
|---|
| Fields inherited from interface net.sf.uadetector.datastore.UpdateOperation |
|---|
DEFAULT_UPDATE_INTERVAL |
| Constructor Summary | |
|---|---|
AbstractUpdateOperation(RefreshableDataStore dataStore)
|
|
| Method Summary | |
|---|---|
long |
getLastUpdateCheck()
Gets the time of the last update check in milliseconds. |
protected boolean |
isUpdateAvailable()
Fetches the current version information over HTTP and compares it with the last version of the most recently imported data. |
void |
run()
Executes the update at some time in the future (as soon as possible) within a new thread. |
void |
shutdown()
Shuts down the corresponding background executor as soon as possible, but at the latest specified default time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.uadetector.datastore.UpdateOperation |
|---|
call |
| Constructor Detail |
|---|
public AbstractUpdateOperation(@Nonnull
RefreshableDataStore dataStore)
| Method Detail |
|---|
public long getLastUpdateCheck()
getLastUpdateCheck in interface UpdateOperationprotected boolean isUpdateAvailable()
true if an update exists, otherwise falsepublic void run()
run in interface java.lang.Runnablepublic void shutdown()
shutdown in interface UpdateOperationExecutorServices.shutdown(ExecutorService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||