Class PrimaryLaunch
- java.lang.Object
-
- com.epam.reportportal.service.Launch
-
- com.epam.reportportal.service.LaunchImpl
-
- com.epam.reportportal.service.launch.AbstractJoinedLaunch
-
- com.epam.reportportal.service.launch.PrimaryLaunch
-
public class PrimaryLaunch extends AbstractJoinedLaunch
An implementation of aLaunchobject which managed to obtain main lock withLaunchIdLockobject. Therefore, it is responsible for an actual launch creation on ReportPortal and contains logic to wait secondary launches.
-
-
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
client, NOOP_LAUNCH, NOT_ISSUE
-
-
Constructor Summary
Constructors Constructor Description PrimaryLaunch(ReportPortalClient rpClient, ListenerParameters parameters, StartLaunchRQ 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)Wait for all secondary launches finish and then close the Primary Launch.-
Methods inherited from class com.epam.reportportal.service.LaunchImpl
completeIssues, completeLogEmitter, createScheduler, createVirtualItem, createVirtualItemCompletable, finishTestItem, getExecutor, getLaunch, getScheduler, log, log, log, start, start, startTestItem, startTestItem, startTestItem, startVirtualTestItem, startVirtualTestItem, useMicroseconds, waitForCompletable, waitForItemsCompletion
-
Methods inherited from class com.epam.reportportal.service.Launch
currentLaunch, getClient, getParameters, getStepReporter
-
-
-
-
Constructor Detail
-
PrimaryLaunch
public PrimaryLaunch(ReportPortalClient rpClient, ListenerParameters parameters, StartLaunchRQ launch, java.util.concurrent.ExecutorService executorService, LaunchIdLock launchIdLock, java.lang.String instanceUuid)
-
-
Method Detail
-
finish
public void finish(@Nonnull FinishExecutionRQ request)Wait for all secondary launches finish and then close the Primary Launch. If there was running secondary launch number change then the timeout will reset.- Overrides:
finishin classLaunchImpl- Parameters:
request- Finish Launch Request to use (end time will be updated after wait).
-
-