Search in sources :

Example 1 with ReportingHelper

use of com.github.nagyesta.abortmission.core.telemetry.ReportingHelper in project abort-mission by nagyesta.

the class H2StrongbackController method retract.

@Override
public void retract() {
    final LaunchTelemetryDataSource telemetryDataSource = new H2BackedLaunchTelemetryDataSource(dataSource);
    new ReportingHelper().report(telemetryDataSource);
    serverManager.stopServer();
}
Also used : H2BackedLaunchTelemetryDataSource(com.github.nagyesta.abortmission.strongback.h2.telemetry.H2BackedLaunchTelemetryDataSource) LaunchTelemetryDataSource(com.github.nagyesta.abortmission.core.telemetry.stats.LaunchTelemetryDataSource) H2BackedLaunchTelemetryDataSource(com.github.nagyesta.abortmission.strongback.h2.telemetry.H2BackedLaunchTelemetryDataSource) ReportingHelper(com.github.nagyesta.abortmission.core.telemetry.ReportingHelper)

Example 2 with ReportingHelper

use of com.github.nagyesta.abortmission.core.telemetry.ReportingHelper in project abort-mission by nagyesta.

the class RmiStrongbackController method retract.

@Override
public void retract() {
    final Registry registry = RmiServiceProvider.lookupRegistry(serverManager.getPort());
    final LaunchTelemetryDataSource telemetryDataSource = new RmiBackedLaunchTelemetryDataSource(registry);
    new ReportingHelper().report(telemetryDataSource);
    serverManager.stopServer();
}
Also used : RmiBackedLaunchTelemetryDataSource(com.github.nagyesta.abortmission.strongback.rmi.telemetry.RmiBackedLaunchTelemetryDataSource) LaunchTelemetryDataSource(com.github.nagyesta.abortmission.core.telemetry.stats.LaunchTelemetryDataSource) RmiBackedLaunchTelemetryDataSource(com.github.nagyesta.abortmission.strongback.rmi.telemetry.RmiBackedLaunchTelemetryDataSource) ReportingHelper(com.github.nagyesta.abortmission.core.telemetry.ReportingHelper) Registry(java.rmi.registry.Registry)

Aggregations

ReportingHelper (com.github.nagyesta.abortmission.core.telemetry.ReportingHelper)2 LaunchTelemetryDataSource (com.github.nagyesta.abortmission.core.telemetry.stats.LaunchTelemetryDataSource)2 H2BackedLaunchTelemetryDataSource (com.github.nagyesta.abortmission.strongback.h2.telemetry.H2BackedLaunchTelemetryDataSource)1 RmiBackedLaunchTelemetryDataSource (com.github.nagyesta.abortmission.strongback.rmi.telemetry.RmiBackedLaunchTelemetryDataSource)1 Registry (java.rmi.registry.Registry)1