À partir du 27 mars 2025, nous vous recommandons d'utiliser android-latest-release
au lieu de aosp-main
pour créer et contribuer à AOSP. Pour en savoir plus, consultez la section Modifications apportées à AOSP.
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
IShardHelper
public
interface
IShardHelper
com.android.tradefed.invoker.shard.IShardHelper
|
Sous-classes indirectes connues
DynamicShardHelper |
Stratégie de segmentation permettant de mettre en file d'attente des tâches à distance entre plusieurs instances TF
|
ShardHelper |
Classe d'assistance qui gère la création des fragments et leur planification pour une invocation.
|
StrictShardHelper |
Stratégie de segmentation pour créer des segments stricts qui ne créent pas de rapports ensemble
|
|
Interface d'un objet qui décrit la stratégie de partitionnement à adopter pour une configuration.
Résumé
Méthodes publiques
public abstract boolean shardConfig (IConfiguration config,
TestInformation testInfo,
IRescheduler rescheduler,
ITestLogger logger)
Si possible, segmentez et reprogrammez le segment.
Paramètres |
config |
IConfiguration : IConfiguration à exécuter. |
testInfo |
TestInformation : TestInformation de l'appel en cours. |
rescheduler |
IRescheduler : IRescheduler où replanifier les fragments. |
logger |
ITestLogger |
Renvoie |
boolean |
"True" si la configuration a été partitionnée, "false" dans le cas contraire. |
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/27 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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 |"]]