RecorderClientLegacy

public class RecorderClientLegacy
extends Object implements IRecorderClientLegacy

java.lang.Object
   ↳ com.android.tradefed.result.resultdb.RecorderClientLegacy


ResultDB recorder client that uploads test results to ResultDB legacy invocation.

Summary

Constants

int SERVER_PORT

Public methods

static IRecorderClientLegacy createLegacy(String invocationId, String updateToken, Boolean isStaging)
static IRecorderClientLegacy createLegacyWithNewInvocation(String invocationId, Invocation invocation, Boolean isStaging)
void enqueueArtifact(Artifact artifact)

Enqueue an artifact to upload to ResultDB.

void enqueueTestResult(TestResult result)

Enqueue a test result to upload to ResultDB.

Invocation finalizeInvocation()

Finalize the invocation.

void finalizeUpload()

Finalize the upload of test results and artifacts.

void uploadArtifact(Artifact artifact)

Upload an artifact to ResultDB.

Constants

SERVER_PORT

public static final int SERVER_PORT

Constant Value: 443 (0x000001bb)

Public methods

createLegacy

public static IRecorderClientLegacy createLegacy (String invocationId, 
                String updateToken, 
                Boolean isStaging)

Parameters
invocationId String

updateToken String

isStaging Boolean

Returns
IRecorderClientLegacy

createLegacyWithNewInvocation

public static IRecorderClientLegacy createLegacyWithNewInvocation (String invocationId, 
                Invocation invocation, 
                Boolean isStaging)

Parameters
invocationId String

invocation Invocation

isStaging Boolean

Returns
IRecorderClientLegacy

enqueueArtifact

public void enqueueArtifact (Artifact artifact)

Enqueue an artifact to upload to ResultDB.

Parameters
artifact Artifact: The artifact to upload.

enqueueTestResult

public void enqueueTestResult (TestResult result)

Enqueue a test result to upload to ResultDB.

Parameters
result TestResult: The test result to upload.

finalizeInvocation

public Invocation finalizeInvocation ()

Finalize the invocation. This method should be called after all test results and artifacts have been uploaded.

Returns
Invocation

finalizeUpload

public 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 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.