public class LaunchLoggingContext
extends java.lang.Object
ConcurrentHashMap context for launch logging and converts
SaveLogRQ to multipart HTTP request to ReportPortal
Basic flow:
After start some launch context should be initialized with observable of
launch ID and ReportPortal client.
Before actual finish of launch, context should be closed/completed.
Context consists of Flowable with buffering back-pressure strategy to be able
to batch incoming log messages into one request| Modifier and Type | Method and Description |
|---|---|
static io.reactivex.Completable |
complete()
Completes context attached to the current thread
|
static LaunchLoggingContext |
init(io.reactivex.Maybe<java.lang.String> launchUuid,
ReportPortalClient client,
io.reactivex.Scheduler scheduler,
ListenerParameters parameters)
Initializes new logging context and attaches it to current thread
|
public static LaunchLoggingContext init(io.reactivex.Maybe<java.lang.String> launchUuid, ReportPortalClient client, io.reactivex.Scheduler scheduler, ListenerParameters parameters)
launchUuid - a UUID of a Launchclient - Client of ReportPortalscheduler - a Scheduler to use with this LoggingContextparameters - Report Portal client configuration parameterspublic static io.reactivex.Completable complete()