Search in sources :

Example 1 with RmiBackedLaunchTelemetryDataSource

use of com.github.nagyesta.abortmission.strongback.rmi.telemetry.RmiBackedLaunchTelemetryDataSource 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)1 LaunchTelemetryDataSource (com.github.nagyesta.abortmission.core.telemetry.stats.LaunchTelemetryDataSource)1 RmiBackedLaunchTelemetryDataSource (com.github.nagyesta.abortmission.strongback.rmi.telemetry.RmiBackedLaunchTelemetryDataSource)1 Registry (java.rmi.registry.Registry)1