IRecorderClientLegacy
public
interface
IRecorderClientLegacy
| com.android.tradefed.result.resultdb.IRecorderClientLegacy |
Interface for communicating with ResultDB recorder backend. The interface contains methods to
create and update invocations and upload test results under invocation. This the legacy structure
of reporting test results to ResultDB. New code should use IRecorderClient instead.
Summary
Public methods | |
|---|---|
abstract
void
|
enqueueArtifact(Artifact artifact)
Enqueue an artifact to upload to ResultDB. |
abstract
void
|
enqueueTestResult(TestResult result)
Enqueue a test result to upload to ResultDB. |
abstract
Invocation
|
finalizeInvocation()
Finalize the invocation. |
abstract
void
|
finalizeUpload()
Finalize the upload of test results and artifacts. |
abstract
void
|
uploadArtifact(Artifact artifact)
Upload an artifact to ResultDB. |
Public methods
enqueueArtifact
public abstract void enqueueArtifact (Artifact artifact)
Enqueue an artifact to upload to ResultDB.
| Parameters | |
|---|---|
artifact |
Artifact: The artifact to upload. |
enqueueTestResult
public abstract void enqueueTestResult (TestResult result)
Enqueue a test result to upload to ResultDB.
| Parameters | |
|---|---|
result |
TestResult: The test result to upload. |
finalizeInvocation
public abstract Invocation finalizeInvocation ()
Finalize the invocation. This method should be called after all test results and artifacts have been uploaded.
| Returns | |
|---|---|
Invocation |
|
finalizeUpload
public abstract void finalizeUpload ()
Finalize the upload of test results and artifacts. This method should be called after all test results and artifacts have been enqueued. Any enqueueTestResult and enqueueArtifact calls after this method will be ignored.
uploadArtifact
public abstract void uploadArtifact (Artifact artifact)
Upload an artifact to ResultDB. This is a blocking call. Prefer to use enqueueArtifact(Artifact) if possible.
| Parameters | |
|---|---|
artifact |
Artifact: The artifact to upload. |