Klasse MetricsCycleBase

java.lang.Object
java.lang.Thread
de.dlr.proseo.monitor.apimetrics.MetricsCycleBase
Alle implementierten Schnittstellen:
Runnable
Bekannte direkte Unterklassen:
Metrics10Minutes, MetricsHourly

public abstract class MetricsCycleBase extends Thread
This abstract class contains the base functionality to call the metrics function cyclic.
Autor:
Ernst Melchinger
  • Felddetails

    • metrics

      protected Metrics metrics
      The Metrics instance used for calculations
    • millisToWait

      protected long millisToWait
      Milliseconds to wait between the calls
  • Konstruktordetails

    • MetricsCycleBase

      public MetricsCycleBase(MonitorConfiguration config, org.springframework.transaction.PlatformTransactionManager txManager, javax.persistence.EntityManager em)
      Constructor of a MetricsCycleBase instance
      Parameter:
      config - The monitor configuration
      txManager - The transaction manager
      em - The JPA entity manager
  • Methodendetails

    • doCycle

      protected abstract void doCycle()
      To be declared in subclasses
    • run

      public void run()
      Start the metrics thread
      Angegeben von:
      run in Schnittstelle Runnable
      Setzt außer Kraft:
      run in Klasse Thread