IRecorderClient

public interface IRecorderClient

com.android.tradefed.result.resultdb.IRecorderClient


Interface for communicating with ResultDB recorder backend. The interface contains methods to create and update invocations and upload test results.

Summary

Public methods

abstract Invocation finalizeInvocation()

Finalize the invocation.

abstract void finalizeUpload()

Finalize the upload of test results and artifacts.

abstract Invocation updateInvocation(UpdateInvocationRequest request)
abstract void uploadArtifact(Artifact artifact)

Enqueue an artifact to upload to ResultDB.

abstract void uploadTestResult(TestResult result)

Enqueue a test result to upload to ResultDB.

Public methods

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 uploaded. Any uploadTestResult and uploadArtifact calls after this method will be ignored.

updateInvocation

public abstract Invocation updateInvocation (UpdateInvocationRequest request)

Parameters
request UpdateInvocationRequest

Returns
Invocation

uploadArtifact

public abstract void uploadArtifact (Artifact artifact)

Enqueue an artifact to upload to ResultDB.

Parameters
artifact Artifact: The artifact to upload.

uploadTestResult

public abstract void uploadTestResult (TestResult result)

Enqueue a test result to upload to ResultDB.

Parameters
result TestResult: The test result to upload.