public class NewLocaleTask extends PerfTask
Locale
for use in benchmarking.
Locales can be specified in the following ways:
de
: Language "de"
en,US
: Language "en", country "US"
no,NO,NY
: Language "no", country "NO", variant "NY"
ROOT
: The root (language-agnostic) Locale
Constructor and Description |
---|
NewLocaleTask(PerfRunData runData)
Create a new
Locale and set it it in the getRunData() for
use by all future tasks. |
Modifier and Type | Method and Description |
---|---|
int |
doLogic()
Perform the task once (ignoring repetitions specification)
Return number of work items done by this task.
|
void |
setParams(String params)
Set the params of this task.
|
boolean |
supportsParams()
Sub classes that support parameters must override this method to return
true.
|
clone, close, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, setup, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toString
public NewLocaleTask(PerfRunData runData)
Locale
and set it it in the getRunData() for
use by all future tasks.public int doLogic() throws Exception
PerfTask
public void setParams(String params)
PerfTask
public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask