ObjectUpdater
public
class
ObjectUpdater
extends Object
| java.lang.Object
|
| ↳ |
com.google.android.tradefed.result.teststorage.ObjectUpdater
|
Helper class to manage updates to AnTS objects.
When updating an AnTS object first we need to make sure that we are updating the correct
version. The helper class will automatically fetch the latest version of the object and will
automatically update it retrying in case there are errors and/or versions conflicts.
Summary
Nested classes |
interface |
ObjectUpdater.InvocationUpdate
Perform an update of the provided invocation.
|
class |
ObjectUpdater.TestArtifactUpdate
Perform an update on the returned BuildArtifact.
|
interface |
ObjectUpdater.WorkUnitUpdate
Interface to encapsulte an update.
|
Public methods
create
public static ObjectUpdater create (Androidbuildinternal apiClient)
| Parameters |
apiClient |
Androidbuildinternal |
runUpdate
public BuildArtifactMetadata runUpdate (String invocationId,
String resourceId,
long legacyId,
ObjectUpdater.TestArtifactUpdate update)
| Parameters |
invocationId |
String |
resourceId |
String |
legacyId |
long |
update |
ObjectUpdater.TestArtifactUpdate |
| Returns |
BuildArtifactMetadata |
|
runUpdate
public Invocation runUpdate (String id,
ObjectUpdater.InvocationUpdate update)
Executes the provided update operation. Takes an id of the invocation that needs to be
updated. Will fetch the latest version and will retry the update operation if there are any
errors.
| Parameters |
id |
String |
update |
ObjectUpdater.InvocationUpdate |
runUpdate
public WorkUnit runUpdate (String id,
ObjectUpdater.WorkUnitUpdate update)
Executes the provided update operation. Takes an id of the work unit that needs to be
updated. Will fetch the latest version and will retry the update operation if there are any
errors.
| Parameters |
id |
String |
update |
ObjectUpdater.WorkUnitUpdate |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-12-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-04 UTC."],[],[]]