A partir del 27 de marzo de 2025, te recomendamos que uses android-latest-release
en lugar de aosp-main
para compilar y contribuir a AOSP. Para obtener más información, consulta Cambios en AOSP.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
IShardHelper
public
interface
IShardHelper
com.android.tradefed.invoker.shard.IShardHelper
|
Subcategorías indirectas conocidas
DynamicShardHelper |
Estrategia de fragmentación para permitir que el trabajo remoto se agrupe en colas entre varias instancias de TF
|
ShardHelper |
Clase auxiliar que controla la creación de los fragmentos y su programación para una invocación.
|
StrictShardHelper |
Estrategia de fragmentación para crear fragmentos estrictos que no se informen juntos
|
|
Es la interfaz de un objeto que describe la estrategia de fragmentación que se debe adoptar para una configuración.
Resumen
Métodos públicos
public abstract boolean shardConfig (IConfiguration config,
TestInformation testInfo,
IRescheduler rescheduler,
ITestLogger logger)
Si es posible, fragmenta y vuelve a programar el fragmento.
Parámetros |
config |
IConfiguration : Es un IConfiguration que se ejecutará. |
testInfo |
TestInformation : Es el TestInformation de la invocación actual. |
rescheduler |
IRescheduler : Es el IRescheduler en el que se reprogramarán los fragmentos. |
logger |
ITestLogger |
Muestra |
boolean |
Es verdadero si la configuración se fragmentó. De lo contrario, es falso. |
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2025-07-27 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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 |"]]