Class TaskSequence
Sequence of parallel or sequential tasks.
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class TaskSequence : PerfTask, IDisposable
Constructors
TaskSequence(PerfRunData, string, TaskSequence, bool)
Sequence of parallel or sequential tasks.
Declaration
public TaskSequence(PerfRunData runData, string name, TaskSequence parent, bool parallel)
Parameters
| Type | Name | Description |
|---|---|---|
| PerfRunData | runData | |
| string | name | |
| TaskSequence | parent | |
| bool | parallel |
Fields
REPEAT_EXHAUST
Sequence of parallel or sequential tasks.
Declaration
public static int REPEAT_EXHAUST
Field Value
| Type | Description |
|---|---|
| int |
Properties
IsCollapsable
Return true if can be collapsed in case it is outermost sequence.
Declaration
public virtual bool IsCollapsable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsParallel
Gets the parallel.
Declaration
public virtual bool IsParallel { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Parent
Gets the parent.
Declaration
public virtual TaskSequence Parent { get; }
Property Value
| Type | Description |
|---|---|
| TaskSequence |
Repetitions
Gets the repetitions.
Declaration
public virtual int Repetitions { get; }
Property Value
| Type | Description |
|---|---|
| int |
Tasks
Gets the tasks.
Declaration
public virtual IList<PerfTask> Tasks { get; }
Property Value
| Type | Description |
|---|---|
| IList<PerfTask> |
Methods
AddTask(PerfTask)
Sequence of parallel or sequential tasks.
Declaration
public virtual void AddTask(PerfTask task)
Parameters
| Type | Name | Description |
|---|---|---|
| PerfTask | task |
Clone()
Sequence of parallel or sequential tasks.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| object |
Overrides
Dispose(bool)
Sequence of parallel or sequential tasks.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
DoLogic()
Sequence of parallel or sequential tasks.
Declaration
public override int DoLogic()
Returns
| Type | Description |
|---|---|
| int |
Overrides
See Also
GetName()
Returns the name.
Declaration
public override string GetName()
Returns
| Type | Description |
|---|---|
| string |
Overrides
GetRate()
Returns the rate per minute: how many operations should be performed in a minute. If 0 this has no effect.
Declaration
public virtual int GetRate()
Returns
| Type | Description |
|---|---|
| int | The rate per min: how many operations should be performed in a minute. |
SetNoChildReport()
Execute child tasks in a way that they do not report their time separately.
Declaration
public virtual void SetNoChildReport()
SetRate(int, bool)
Sequence of parallel or sequential tasks.
Declaration
public virtual void SetRate(int rate, bool perMin)
Parameters
| Type | Name | Description |
|---|---|---|
| int | rate | The rate to set. |
| bool | perMin |
SetRepetitions(int)
Sets the repetitions.
Declaration
public virtual void SetRepetitions(int repetitions)
Parameters
| Type | Name | Description |
|---|---|---|
| int | repetitions | The repetitions to set. |
SetRunTime(double)
Sequence of parallel or sequential tasks.
Declaration
public virtual void SetRunTime(double sec)
Parameters
| Type | Name | Description |
|---|---|---|
| double | sec |
StopNow()
Sequence of parallel or sequential tasks.
Declaration
public override void StopNow()
Overrides
ToString()
Sequence of parallel or sequential tasks.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |