Changes between Version 4 and Version 5 of Ticket #529, comment 8


Ignore:
Timestamp:
Mar 20, 2014, 9:33:22 AM (10 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #529, comment 8

    v4 v5  
    1414
    1515|| '''File''' || '''Description''' ||
    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.  ||
    1717
    1818Lab environment measurements and storage: