Class SecondaryLaunch


  • public class SecondaryLaunch
    extends AbstractJoinedLaunch
    An implementation of a Launch object which didn't manage to obtain main lock with LaunchIdLock object. Therefore, it does not create an actual launch ReportPortal, but using provided Launch UUID. It also does not actually finish the launch on ReportPortal, but just waits for graceful items upload.
    • Constructor Detail

      • SecondaryLaunch

        public SecondaryLaunch​(ReportPortalClient rpClient,
                               ListenerParameters parameters,
                               io.reactivex.Maybe<java.lang.String> launch,
                               java.util.concurrent.ExecutorService executorService,
                               LaunchIdLock launchIdLock,
                               java.lang.String instanceUuid)
    • Method Detail

      • start

        @Nonnull
        public io.reactivex.Maybe<java.lang.String> start()
        Description copied from class: LaunchImpl
        Starts new launch in ReportPortal asynchronously (non-blocking). Does NOT start the same launch twice.
        Overrides:
        start in class LaunchImpl
        Returns:
        Launch ID promise.
      • finish

        public void finish​(@Nonnull
                           FinishExecutionRQ request)
        Description copied from class: LaunchImpl
        Finishes launch in ReportPortal. Blocks until all items are reported correctly.
        Overrides:
        finish in class LaunchImpl
        Parameters:
        request - Launch finish request.