Package com.gears42.iot.webthing
Class Updater
- java.lang.Object
-
- java.lang.Thread
-
- com.gears42.iot.webthing.Updater
-
- All Implemented Interfaces:
java.lang.Runnable
public class Updater extends java.lang.ThreadA thread which calls Update method of compliance configured Thing at certain time interval. List of Normal polling properties is passed as a parameter to Update method, which are the need to be updated.
-
-
Constructor Summary
Constructors Constructor Description Updater()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()static voidstartOrInterrupt(com.gears42.iot.webthing.WebThingServer.ThingsType thingsList)Start or interrupt Updater.static voidstopUpdater()Stop Updater.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
startOrInterrupt
public static void startOrInterrupt(com.gears42.iot.webthing.WebThingServer.ThingsType thingsList)
Start or interrupt Updater.- Parameters:
thingsList- list of things enrolled
-
stopUpdater
public static void stopUpdater()
Stop Updater.
-
-