Class SecondaryLaunch
- java.lang.Object
-
- com.epam.reportportal.service.Launch
-
- com.epam.reportportal.service.LaunchImpl
-
- com.epam.reportportal.service.launch.AbstractJoinedLaunch
-
- com.epam.reportportal.service.launch.SecondaryLaunch
-
public class SecondaryLaunch extends AbstractJoinedLaunch
An implementation of aLaunchobject which didn't manage to obtain main lock withLaunchIdLockobject. 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.epam.reportportal.service.LaunchImpl
LaunchImpl.ComputationConcurrentHashMap, LaunchImpl.TreeItem
-
-
Field Summary
-
Fields inherited from class com.epam.reportportal.service.LaunchImpl
apiInfo, CUSTOM_AGENT, DISABLE_PROPERTY, logCompletables, MICROSECONDS_MIN_VERSION, projectSettings, queue, startRq, virtualItemDisposables, virtualItems
-
Fields inherited from class com.epam.reportportal.service.Launch
NOOP_LAUNCH, NOT_ISSUE
-
-
Constructor Summary
Constructors Constructor Description SecondaryLaunch(ReportPortalClient rpClient, ListenerParameters parameters, io.reactivex.Maybe<java.lang.String> launch, java.util.concurrent.ExecutorService executorService, LaunchIdLock launchIdLock, java.lang.String instanceUuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish(FinishExecutionRQ request)Finishes launch in ReportPortal.io.reactivex.Maybe<java.lang.String>start()Starts new launch in ReportPortal asynchronously (non-blocking).-
Methods inherited from class com.epam.reportportal.service.LaunchImpl
completeIssues, completeLogEmitter, createScheduler, createVirtualItem, createVirtualItemCompletable, finishTestItem, getExecutor, getLaunch, getScheduler, log, log, log, start, startTestItem, startTestItem, startTestItem, startVirtualTestItem, startVirtualTestItem, useMicroseconds, waitForCompletable, waitForItemsCompletion
-
Methods inherited from class com.epam.reportportal.service.Launch
currentLaunch, getClient, getParameters, getStepReporter
-
-
-
-
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:LaunchImplStarts new launch in ReportPortal asynchronously (non-blocking). Does NOT start the same launch twice.- Overrides:
startin classLaunchImpl- Returns:
- Launch ID promise.
-
finish
public void finish(@Nonnull FinishExecutionRQ request)Description copied from class:LaunchImplFinishes launch in ReportPortal. Blocks until all items are reported correctly.- Overrides:
finishin classLaunchImpl- Parameters:
request- Launch finish request.
-
-