A partire dal 27 marzo 2025, ti consigliamo di utilizzare android-latest-release
anziché aosp-main
per compilare e contribuire ad AOSP. Per ulteriori informazioni, vedi Modifiche ad AOSP.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
IShardHelper
public
interface
IShardHelper
com.android.tradefed.invoker.shard.IShardHelper
|
Classi di sottoclasse indirette note
DynamicShardHelper |
Strategia di suddivisione in parti per consentire la formazione di code di lavoro da remoto tra più istanze TF
|
ShardHelper |
Classe di supporto che gestisce la creazione degli shard e la loro pianificazione per un'invocazione.
|
StrictShardHelper |
Strategia di suddivisione in parti per creare parti rigorose che non generano report insieme.
|
|
Interfaccia di un oggetto che descrive la strategia di suddivisione da adottare per una configurazione.
Riepilogo
Metodi pubblici
public abstract boolean shardConfig (IConfiguration config,
TestInformation testInfo,
IRescheduler rescheduler,
ITestLogger logger)
Se possibile, esegui lo sharding e riprogramma lo shard.
Parametri |
config |
IConfiguration : un IConfiguration da eseguire. |
testInfo |
TestInformation : il TestInformation dell'invocazione corrente. |
rescheduler |
IRescheduler : il IRescheduler in cui riprogrammare gli shard. |
logger |
ITestLogger |
Ritorni |
boolean |
Vero se la configurazione è stata suddivisa in parti, falso in caso contrario. |
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-27 UTC."],[],[],null,["# IShardHelper\n============\n\n\n`\npublic\n\n\ninterface\nIShardHelper\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------|\n| com.android.tradefed.invoker.shard.IShardHelper |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [DynamicShardHelper](../../../../../../../reference/tradefed/com/android/tradefed/invoker/shard/DynamicShardHelper.html), [ShardHelper](../../../../../../../reference/tradefed/com/android/tradefed/invoker/shard/ShardHelper.html), [StrictShardHelper](../../../../../../../reference/tradefed/com/android/tradefed/invoker/shard/StrictShardHelper.html) |--------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------| | [DynamicShardHelper](../../../../../../../reference/tradefed/com/android/tradefed/invoker/shard/DynamicShardHelper.html) | Sharding strategy to allow work remote work queueing between multiple TF instances | | [ShardHelper](../../../../../../../reference/tradefed/com/android/tradefed/invoker/shard/ShardHelper.html) | Helper class that handles creating the shards and scheduling them for an invocation. | | [StrictShardHelper](../../../../../../../reference/tradefed/com/android/tradefed/invoker/shard/StrictShardHelper.html) | Sharding strategy to create strict shards that do not report together, | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface of an object that describes the sharding strategy to adopt for a configuration.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract boolean` | ` `[shardConfig](../../../../../../../reference/tradefed/com/android/tradefed/invoker/shard/IShardHelper.html#shardConfig(com.android.tradefed.config.IConfiguration,%20com.android.tradefed.invoker.TestInformation,%20com.android.tradefed.invoker.IRescheduler,%20com.android.tradefed.log.ITestLogger))`(`[IConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html)` config, `[TestInformation](../../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html)` testInfo, `[IRescheduler](../../../../../../../reference/tradefed/com/android/tradefed/invoker/IRescheduler.html)` rescheduler, `[ITestLogger](../../../../../../../reference/tradefed/com/android/tradefed/log/ITestLogger.html)` logger) ` Shard and reschedule the shard if possible. |\n\nPublic methods\n--------------\n\n### shardConfig\n\n```\npublic abstract boolean shardConfig (IConfiguration config, \n TestInformation testInfo, \n IRescheduler rescheduler, \n ITestLogger logger)\n```\n\nShard and reschedule the shard if possible.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `config` | `IConfiguration`: a [IConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html) to be run. \u003cbr /\u003e |\n| `testInfo` | `TestInformation`: the [TestInformation](../../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html) of the current invocation. \u003cbr /\u003e |\n| `rescheduler` | `IRescheduler`: the [IRescheduler](../../../../../../../reference/tradefed/com/android/tradefed/invoker/IRescheduler.html) where to reschedule the shards. \u003cbr /\u003e |\n| `logger` | `ITestLogger` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|----------------------------------------------------------------|\n| `boolean` | True if the configuration was sharded. false otherwise. \u003cbr /\u003e |"]]