Class OsgiValidateWorker

All Implemented Interfaces:
org.osgi.service.cm.ConfigurationListener

public class OsgiValidateWorker extends ComponentManagerWorker
This Worker constantly validates:.

Next to the Warning/Fault channels details are also printed to console on debugLog.

  • Constructor Details

  • Method Details

    • forever

      protected void forever()
      Description copied from class: AbstractWorker
      This method is called in a loop forever until the Thread gets interrupted.
      Specified by:
      forever in class AbstractWorker
    • getCycleTime

      protected int getCycleTime()
      Description copied from class: AbstractWorker
      Gets the cycleTime of this worker in [ms].
      • > 0 sets the minimum execution time of one Cycle
      • = 0 never wait between two consecutive executions of forever()
      • < 0 causes the Cycle to sleep forever until 'triggerNextRun()' is called
      Specified by:
      getCycleTime in class AbstractWorker
      Returns:
      the cycleTime
    • configurationEvent

      public void configurationEvent(org.osgi.service.cm.ConfigurationEvent event)
      Specified by:
      configurationEvent in interface org.osgi.service.cm.ConfigurationListener
      Overrides:
      configurationEvent in class ComponentManagerWorker
    • triggerNextRun

      public void triggerNextRun()
      Description copied from class: AbstractWorker
      Allows the next execution of the forever() method.
      Overrides:
      triggerNextRun in class AbstractWorker
    • debugLog

      public String debugLog()
      Description copied from class: ComponentManagerWorker
      Gets some output that is suitable for a continuous Debug log. Returns 'null' by default which causes no output.
      Overrides:
      debugLog in class ComponentManagerWorker
      Returns:
      the debug log output