Class EventBusReporterWrapper

java.lang.Object
io.gravitee.am.service.reporter.vertx.EventBusReporterWrapper
All Implemented Interfaces:
Reporter, io.gravitee.common.component.LifecycleComponent, io.gravitee.common.service.Service, io.gravitee.reporter.api.Reporter, io.vertx.core.Handler<io.vertx.rxjava3.core.eventbus.Message<Reportable>>

public class EventBusReporterWrapper extends Object implements Reporter, io.vertx.core.Handler<io.vertx.rxjava3.core.eventbus.Message<Reportable>>
Author:
Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
  • Field Details

    • logger

      public static final org.slf4j.Logger logger
    • EVENT_BUS_ADDRESS

      public static final String EVENT_BUS_ADDRESS
      See Also:
  • Constructor Details

    • EventBusReporterWrapper

      public EventBusReporterWrapper(io.vertx.rxjava3.core.Vertx vertx, String domain, Reporter reporter)
    • EventBusReporterWrapper

      public EventBusReporterWrapper(io.vertx.rxjava3.core.Vertx vertx, Reporter reporter)
  • Method Details

    • canSearch

      public boolean canSearch()
      Specified by:
      canSearch in interface Reporter
    • handle

      public void handle(io.vertx.rxjava3.core.eventbus.Message<Reportable> reportableMsg)
      Specified by:
      handle in interface io.vertx.core.Handler<io.vertx.rxjava3.core.eventbus.Message<Reportable>>
    • search

      public io.reactivex.rxjava3.core.Single<Page> search(ReferenceType referenceType, String referenceId, ReportableCriteria criteria, int page, int size)
      Specified by:
      search in interface Reporter
    • aggregate

      public io.reactivex.rxjava3.core.Single<Map<Object,Object>> aggregate(ReferenceType referenceType, String referenceId, ReportableCriteria criteria, Type analyticsType)
      Specified by:
      aggregate in interface Reporter
    • findById

      public io.reactivex.rxjava3.core.Maybe findById(ReferenceType referenceType, String referenceId, String id)
      Specified by:
      findById in interface Reporter
    • report

      public void report(io.gravitee.reporter.api.Reportable reportable)
      Specified by:
      report in interface io.gravitee.reporter.api.Reporter
    • lifecycleState

      public io.gravitee.common.component.Lifecycle.State lifecycleState()
      Specified by:
      lifecycleState in interface io.gravitee.common.component.LifecycleComponent
    • start

      public Object start() throws Exception
      Specified by:
      start in interface io.gravitee.common.component.LifecycleComponent
      Throws:
      Exception
    • stop

      public Object stop() throws Exception
      Specified by:
      stop in interface io.gravitee.common.component.LifecycleComponent
      Throws:
      Exception
    • unregister

      public void unregister()
    • getReferenceType

      public ReferenceType getReferenceType()
    • getReferenceId

      public String getReferenceId()