RecorderClientLegacy
public
class
RecorderClientLegacy
extends Object
implements
IRecorderClientLegacy
| java.lang.Object | |
| ↳ | com.android.tradefed.result.resultdb.RecorderClientLegacy |
לקוח לתיעוד ב-ResultDB שמעלה תוצאות בדיקה לקריאה מדור קודם של ResultDB.
סיכום
ערכים קבועים | |
|---|---|
int |
SERVER_PORT
|
methods ציבוריים | |
|---|---|
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)
העלאת פריט מידע שנוצר בתהליך פיתוח (Artifact) ל-ResultDB. |
ערכים קבועים
SERVER_PORT
public static final int SERVER_PORT
ערך קבוע: 443 (0x000001bb)
methods ציבוריים
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 ()
משלימים את ההפעלה. צריך להפעיל את ה-method הזו אחרי שמעלים את כל תוצאות הבדיקה ואת כל הארטיפקטים.
| החזרות | |
|---|---|
Invocation |
|
finalizeUpload
public void finalizeUpload ()
סיום ההעלאה של תוצאות הבדיקה ופריטי המידע. צריך להפעיל את ה-method הזו אחרי שכל התוצאות והארטיפקטים של הבדיקה נוספו לתור. המערכת תתעלם מכל הקריאות ל-enqueueTestResult ול-enqueueArtifact אחרי השימוש ב-method הזה.
uploadArtifact
public void uploadArtifact (Artifact artifact)
העלאת פריט מידע שנוצר בתהליך פיתוח (Artifact) ל-ResultDB. זו שיחה שחוסמת את המשתמש. אם אפשר, עדיף להשתמש בenqueueArtifact(Artifact).
| פרמטרים | |
|---|---|
artifact |
Artifact: הארטיפקט להעלאה. |