RecorderClientLegacy

public class RecorderClientLegacy
extends Object implements IRecorderClientLegacy

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


ResultDB 记录器客户端,用于将测试结果上传到 ResultDB 旧版调用。

摘要

常量

int SERVER_PORT

公共方法

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

将工件排入队列以上传到 ResultDB。

void enqueueTestResult(TestResult result)

将测试结果排入队列以上传到 ResultDB。

Invocation finalizeInvocation()

最终确定调用。

void finalizeUpload()

最终确定测试结果和工件的上传。

void uploadArtifact(Artifact artifact)

将工件上传到 ResultDB。

常量

SERVER_PORT

public static final int SERVER_PORT

常量值: 443 (0x000001bb)

公共方法

createLegacy

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

参数
invocationId String

updateToken String

isStaging Boolean

返回
IRecorderClientLegacy

createLegacyWithNewInvocation

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

参数
invocationId String

invocation Invocation

isStaging Boolean

返回
IRecorderClientLegacy

enqueueArtifact

public void enqueueArtifact (Artifact artifact)

将工件排入队列以上传到 ResultDB。

参数
artifact Artifact:要上传的工件。

enqueueTestResult

public void enqueueTestResult (TestResult result)

将测试结果排入队列以上传到 ResultDB。

参数
result TestResult:要上传的测试结果。

finalizeInvocation

public Invocation finalizeInvocation ()

最终确定调用。应在上传所有测试结果和工件 后调用此方法。

返回
Invocation

finalizeUpload

public void finalizeUpload ()

最终确定测试结果和工件的上传。应在将所有 测试结果和工件排入队列后调用此方法。系统会忽略在此方法之后的所有 enqueueTestResult 和 enqueueArtifact 调用。

uploadArtifact

public void uploadArtifact (Artifact artifact)

将工件上传到 ResultDB。这是阻塞调用。如果可以,请优先使用 enqueueArtifact(Artifact)

参数
artifact Artifact:要上传的工件。