Class StatisticsProviderInfluxService

java.lang.Object
org.opencastproject.statistics.provider.influx.StatisticsProviderInfluxService
All Implemented Interfaces:
org.apache.felix.fileinstall.ArtifactInstaller, org.apache.felix.fileinstall.ArtifactListener, org.opencastproject.statistics.api.StatisticsWriter, org.osgi.service.cm.ManagedService

public class StatisticsProviderInfluxService extends Object implements org.osgi.service.cm.ManagedService, org.apache.felix.fileinstall.ArtifactInstaller, org.opencastproject.statistics.api.StatisticsWriter
Implements statistics providers using influxdb for permanent storage.
  • Constructor Details

    • StatisticsProviderInfluxService

      public StatisticsProviderInfluxService()
  • Method Details

    • setStatisticsCoordinator

      public void setStatisticsCoordinator(org.opencastproject.statistics.api.StatisticsCoordinator service)
    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
    • deactivate

      public void deactivate(org.osgi.service.component.ComponentContext cc)
    • install

      public void install(File file) throws Exception
      Specified by:
      install in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
    • uninstall

      public void uninstall(File file)
      Specified by:
      uninstall in interface org.apache.felix.fileinstall.ArtifactInstaller
    • canHandle

      public boolean canHandle(File file)
      Specified by:
      canHandle in interface org.apache.felix.fileinstall.ArtifactListener
    • update

      public void update(File file) throws Exception
      Specified by:
      update in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
    • updated

      public void updated(Dictionary<String,?> dictionary)
      Specified by:
      updated in interface org.osgi.service.cm.ManagedService
    • getInfluxDB

      public org.influxdb.InfluxDB getInfluxDB()
    • writeDuration

      public void writeDuration(String organizationId, String measurementName, String retentionPolicy, String organizationIdResourceName, String fieldName, TimeUnit temporalResolution, Duration duration)
      Specified by:
      writeDuration in interface org.opencastproject.statistics.api.StatisticsWriter
    • getId

      public String getId()
      Specified by:
      getId in interface org.opencastproject.statistics.api.StatisticsWriter