RecorderClient
public
class
RecorderClient
extends Object
implements
IRecorderClient
| java.lang.Object | |
| ↳ | com.android.tradefed.result.resultdb.RecorderClient |
ResultDB recorder client that uploads test results to ResultDB.
Summary
Constants | |
|---|---|
int |
SERVER_PORT
|
Public methods | |
|---|---|
static
IRecorderClient
|
create(String invocationId, String updateToken, Boolean isStaging)
|
static
IRecorderClient
|
createWithNewInvocation(CreateInvocationRequest request, Boolean isStaging)
|
Invocation
|
finalizeInvocation()
Finalize the invocation. |
void
|
finalizeUpload()
Finalize the upload of test results and artifacts. |
Invocation
|
updateInvocation(UpdateInvocationRequest request)
|
void
|
uploadArtifact(Artifact artifact)
Enqueue an artifact to upload to ResultDB. |
void
|
uploadTestResult(TestResult result)
Enqueue a test result to upload to ResultDB. |
Constants
SERVER_PORT
public static final int SERVER_PORT
Constant Value: 443 (0x000001bb)
Public methods
create
public static IRecorderClient create (String invocationId, String updateToken, Boolean isStaging)
| Parameters | |
|---|---|
invocationId |
String |
updateToken |
String |
isStaging |
Boolean |
| Returns | |
|---|---|
IRecorderClient |
|
createWithNewInvocation
public static IRecorderClient createWithNewInvocation (CreateInvocationRequest request, Boolean isStaging)
| Parameters | |
|---|---|
request |
CreateInvocationRequest |
isStaging |
Boolean |
| Returns | |
|---|---|
IRecorderClient |
|
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 uploaded. Any uploadTestResult and uploadArtifact calls after this method will be ignored.
updateInvocation
public Invocation updateInvocation (UpdateInvocationRequest request)
| Parameters | |
|---|---|
request |
UpdateInvocationRequest |
| Returns | |
|---|---|
Invocation |
|
uploadArtifact
public void uploadArtifact (Artifact artifact)
Enqueue an artifact to upload to ResultDB.
| Parameters | |
|---|---|
artifact |
Artifact: The artifact to upload. |
uploadTestResult
public void uploadTestResult (TestResult result)
Enqueue a test result to upload to ResultDB.
| Parameters | |
|---|---|
result |
TestResult: The test result to upload. |