16 | | || `labenv/src/sf/basedb/clients/web/extensions/service/LabEnvService.java` || A service based on the BASE `DummyAction` service, that repeats an action after a pre-defined time interval. This class combines the functionality of `ServiceControllerFactory`, `ServiceController`, and `Service`, that are implemented as separate classes in more complex services, like the BASE FTP Service. It implements the `ServiceControllerAction` interface, having public methods `boolean isRunning()`, `void start()`, and `void stop()`. Public method `void start()` creates an instance of singleton `LabEnvironment` and stores it as an instance variable. `LabEnvironment` in turn creates an instance of class `LabEnvironmentConfiguration`, that reads configuration values from file `labenv-config.xml`. A `java.util.TimerTask` instance is created, where the time interval is taken from configuration values, and the public `void run` method calls public method `void measureAndStoreLabEnvironmentData()` in the `LabEnvironment` instance. || |
| 16 | || `labenv/src/net/sf/basedb/clients/web/extensions/service/LabEnvService.java` || A service based on the BASE `DummyAction` service, that repeats an action after a pre-defined time interval. This class combines the functionality of `ServiceControllerFactory`, `ServiceController`, and `Service`, that are implemented as separate classes in more complex services, like the BASE FTP Service. It implements the `ServiceControllerAction` interface, having public methods `boolean isRunning()`, `void start()`, and `void stop()`. Public method `void start()` creates an instance of singleton `LabEnvironment` and stores it as an instance variable. `LabEnvironment` in turn creates an instance of class `LabEnvironmentConfiguration`, that reads configuration values from file `labenv-config.xml`. A `java.util.TimerTask` instance is created, where the time interval is taken from configuration values, and the public `void run` method calls public method `void measureAndStoreLabEnvironmentData()` in the `LabEnvironment` instance. || |