public class Comparison extends ProgramBase
| Constructor and Description |
|---|
Comparison() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageDetectionTimePerThread() |
int |
getCount() |
static void |
main(java.lang.String[] args)
Instantiates this class and starts
runComparisons(String, String, String, String, String, int)
with parameters from the command line. |
void |
run(fiftyone.devicedetection.examples.Comparison.ComparisonProvider provider,
java.util.LinkedList<fiftyone.devicedetection.examples.Comparison.Request> requests,
int numberOfThreads) |
getDefaultFilePath, getDefaultFilePathpublic static void main(java.lang.String[] args)
throws java.lang.Exception
runComparisons(String, String, String, String, String, int)
with parameters from the command line. When run from the command line
the first and last file arguments must be a file of User-Agents and the
file that the comparison results will be written to. Files between the
first and last file are optional and provide the FiftyOneDegrees,
WURFL and DeviceAtlas data files. A final optional argument of type
integer can be provided to determine the number of concurrent threads
to use during processing if the provider supports multi threaded
operation.args - command line arguments.java.io.IOException - if the data file cannot be accessed.java.lang.InterruptedException - if the comparison threads are interrupted.java.lang.Exceptionpublic double getAverageDetectionTimePerThread()
public int getCount()
public void run(fiftyone.devicedetection.examples.Comparison.ComparisonProvider provider, java.util.LinkedList<fiftyone.devicedetection.examples.Comparison.Request> requests, int numberOfThreads) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2022. All rights reserved.