Session class

Holds the run this process reports into plus error accounting.

Constructors

Session({required Client client, required Config config, required int testRunId, required bool ownedByAdapter, required bool peerHandoff})
Builds a reporting session for a resolved run id.

Properties

client → Client
API client for this session.
final
config → Config
Resolved configuration.
final
failedReport → int
The number of results that could not be reported.
no setter
hashCode → int
The hash code for this object.
no setterinherited
lastError → String
The most recent upload error text.
no setter
ownedByAdapter → bool
Whether the adapter opened this run (and therefore closes it).
final
peerFinisher ↔ bool
Whether this peer process is the one guaranteed to leave last, so it finishes the shared run without the refcount.
getter/setter pair
peerHandoff → bool
Whether several peer processes share this run via the file-lock handoff; the last one to leave finishes the run.
final
reportingEnabled → bool
false once the session soft-disabled.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
testRunId → int
The run every result in this process lands in.
final
unsentResults → int
The number of results never handed to the API.
no setter

Methods

clearOneFailedReport() → void
Undoes one failure count after a later retry landed.
disableReporting() → void
Stops further uploads for this process.
enableReporting() → void
Re-arms reporting. Only tests and a runner that deliberately retries a soft-disabled session use this.
finishOwnedRun() → Future<void>
Closes the run when this process owns it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
noteFailedReport(int n) → void
Counts a result the server or transport rejected.
noteUnsentResults(int n) → void
Counts results dropped before upload.
setLastError(String message) → void
Records the most recent upload error text.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited