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, getAlgLineNum, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setRunInBackground, setup, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toStringpublic NewLocaleTask(PerfRunData runData)
Locale and set it it in the getRunData() for
use by all future tasks.public int doLogic()
throws Exception
PerfTaskpublic void setParams(String params)
PerfTaskpublic boolean supportsParams()
PerfTasksupportsParams in class PerfTaskCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.