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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventBusReporterWrapper(io.vertx.rxjava3.core.Vertx vertx, Reporter reporter) EventBusReporterWrapper(io.vertx.rxjava3.core.Vertx vertx, String domain, Reporter reporter) -
Method Summary
Modifier and TypeMethodDescriptionaggregate(ReferenceType referenceType, String referenceId, ReportableCriteria criteria, Type analyticsType) booleanio.reactivex.rxjava3.core.MaybefindById(ReferenceType referenceType, String referenceId, String id) voidhandle(io.vertx.rxjava3.core.eventbus.Message<Reportable> reportableMsg) io.gravitee.common.component.Lifecycle.Statevoidreport(io.gravitee.reporter.api.Reportable reportable) io.reactivex.rxjava3.core.Single<Page>search(ReferenceType referenceType, String referenceId, ReportableCriteria criteria, int page, int size) start()stop()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.gravitee.common.component.LifecycleComponent
postStart, postStop, preStart, preStopMethods inherited from interface io.gravitee.reporter.api.Reporter
canHandle
-
Field Details
-
logger
public static final org.slf4j.Logger logger -
EVENT_BUS_ADDRESS
- See Also:
-
-
Constructor Details
-
EventBusReporterWrapper
-
EventBusReporterWrapper
-
-
Method Details
-
canSearch
public boolean canSearch() -
handle
- Specified by:
handlein interfaceio.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) -
aggregate
public io.reactivex.rxjava3.core.Single<Map<Object,Object>> aggregate(ReferenceType referenceType, String referenceId, ReportableCriteria criteria, Type analyticsType) -
findById
public io.reactivex.rxjava3.core.Maybe findById(ReferenceType referenceType, String referenceId, String id) -
report
public void report(io.gravitee.reporter.api.Reportable reportable) - Specified by:
reportin interfaceio.gravitee.reporter.api.Reporter
-
lifecycleState
public io.gravitee.common.component.Lifecycle.State lifecycleState()- Specified by:
lifecycleStatein interfaceio.gravitee.common.component.LifecycleComponent
-
start
- Specified by:
startin interfaceio.gravitee.common.component.LifecycleComponent- Throws:
Exception
-
stop
- Specified by:
stopin interfaceio.gravitee.common.component.LifecycleComponent- Throws:
Exception
-
unregister
public void unregister() -
getReferenceType
-
getReferenceId
-