Package org.opencms.util.benchmark
Class CmsFileBenchmarkReceiver
- java.lang.Object
-
- org.opencms.util.benchmark.CmsFileBenchmarkReceiver
-
public class CmsFileBenchmarkReceiver extends java.lang.Object
Appends benchmark samples to a file.
-
-
Constructor Summary
Constructors Constructor Description CmsFileBenchmarkReceiver()
Creates a new instance and configures it via the Java system properties.CmsFileBenchmarkReceiver(java.lang.String path, java.lang.String benchmark, java.lang.String group)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
receiveSample(java.lang.String sampleName, long sampleTime)
-
-
-
Constructor Detail
-
CmsFileBenchmarkReceiver
public CmsFileBenchmarkReceiver()
Creates a new instance and configures it via the Java system properties.The following properties are used:
- opencms.benchmark.file: the output file
- opencms.benchmark.name: the benchmark name
- opencms.benchmark.group: the benchmark group
-
CmsFileBenchmarkReceiver
public CmsFileBenchmarkReceiver(java.lang.String path, java.lang.String benchmark, java.lang.String group)
Creates a new instance.- Parameters:
path
- the output file pathbenchmark
- the benchmark namegroup
- the benchmark group
-
-
Method Detail
-
receiveSample
public void receiveSample(java.lang.String sampleName, long sampleTime)
- See Also:
CmsBenchmarkTable.Receiver.receiveSample(java.lang.String, long)
-
-