◆ build()
Pipeline fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.build | ( | ) | throws Exception |
Build and return a pipeline that can perform device detection.
- Returns
- the built pipeline
- Exceptions
-
- Exception - on error
\r\n
Builder used to create pipelines with an on-premise device detection engine.
DeviceDetectionOnPremisePipelineBuilder | setShareUsage (boolean enabled)
Set share usage enabled/disabled. More...
|
DeviceDetectionOnPremisePipelineBuilder | setAutoUpdate (boolean enabled)
Enable/Disable auto update. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDataFileSystemWatcher (boolean enabled)
The DataUpdateService has the ability to watch a file on disk and refresh the engine as soon as that file is updated. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDataUpdateService (DataUpdateService dataUpdateService)
Automatic updates require a DataUpdateService. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDataUpdateOnStartup (boolean enabled)
Enable/Disable update on startup. More...
|
DeviceDetectionOnPremisePipelineBuilder | setUpdatePollingInterval (int pollingIntervalSeconds)
Set the time between checks for a new data file made by the DataUpdateService in seconds. More...
|
DeviceDetectionOnPremisePipelineBuilder | setUpdatePollingIntervalMillis (long pollingIntervalMillis)
Set the time between checks for a new data file made by the DataUpdateService in milliseconds. More...
|
DeviceDetectionOnPremisePipelineBuilder | setUpdateRandomisationMax (int randomisationMaxSeconds)
A random element can be added to the DataUpdateService polling interval. More...
|
DeviceDetectionOnPremisePipelineBuilder | setUpdateRandomisationMaxMillis (long randomisationMaxMillis)
A random element can be added to the DataUpdateService polling interval. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDataUpdateLicenseKey (String key)
Set the license key used when checking for new device detection data files. More...
|
DeviceDetectionOnPremisePipelineBuilder | setPerformanceProfile (Constants.PerformanceProfiles profile)
Set the performance profile for the device detection engine. More...
|
DeviceDetectionOnPremisePipelineBuilder | setConcurrency (int concurrency)
Set the expected number of concurrent operations using the engine. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDifference (int difference)
Set the maximum difference to allow when processing HTTP headers. More...
|
DeviceDetectionOnPremisePipelineBuilder | setAllowUnmatched (boolean allow)
If set to false, a non-matching User-Agent will result in properties without set values. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDrift (int drift)
Set the maximum drift to allow when matching hashes. More...
|
DeviceDetectionOnPremisePipelineBuilder | setUsePerformanceGraph (boolean use)
Set whether or not the performance optimized graph is used for processing. More...
|
DeviceDetectionOnPremisePipelineBuilder | setUsePredictiveGraph (boolean use)
Set whether or not the predictive optimized graph is used for processing. More...
|
DeviceDetectionOnPremisePipelineBuilder | setProperty (String property)
Add a property to the list of properties that the engine will populate in the response. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDataUpdateUrl (String url)
Configure the engine to use the specified URL when looking for an updated data file. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDataUpdateVerifyMd5 (Boolean verify)
Set a value indicating if the DataUpdateService should expect the response from the data update URL to contain a 'content-md5' HTTP header that can be used to verify the integrity of the content. More...
|
DeviceDetectionOnPremisePipelineBuilder | setDataUpdateUrlFormatter (DataUpdateUrlFormatter formatter)
Specify a DataUpdateUrlFormatter to be used by the DataUpdateService when building the complete URL to query for updated data. More...
|
Pipeline | build () throws Exception
Build and return a pipeline that can perform device detection. More...
|
Pipeline fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.build | ( | ) | throws Exception |
Build and return a pipeline that can perform device detection.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setAllowUnmatched | ( | boolean | allow | ) |
If set to false, a non-matching User-Agent will result in properties without set values.
If set to true, a non-matching User-Agent will cause the 'default profiles' to be returned. This means that properties will always have values (i.e. no need to check .hasValue) but some may be inaccurate. By default, this is false.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setAutoUpdate | ( | boolean | enabled | ) |
Enable/Disable auto update.
Defaults to enabled. If enabled, the auto update system will automatically download and apply new data files for device detection.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setConcurrency | ( | int | concurrency | ) |
Set the expected number of concurrent operations using the engine.
This sets the concurrency of the internal caches to avoid excessive locking.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDataFileSystemWatcher | ( | boolean | enabled | ) |
The DataUpdateService has the ability to watch a file on disk and refresh the engine as soon as that file is updated.
This setting enables/disables that feature.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDataUpdateLicenseKey | ( | String | key | ) |
Set the license key used when checking for new device detection data files.
Defaults to null.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDataUpdateOnStartup | ( | boolean | enabled | ) |
Enable/Disable update on startup.
Defaults to enabled. If enabled, the auto update system will be used to check for an update before the device detection engine is created. If an update is available, it will be downloaded and applied before the pipeline is built and returned for use so this may take some time.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDataUpdateService | ( | DataUpdateService | dataUpdateService | ) |
Automatic updates require a DataUpdateService.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDataUpdateUrl | ( | String | url | ) |
Configure the engine to use the specified URL when looking for an updated data file.
Default is the 51Degrees update URL
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDataUpdateUrlFormatter | ( | DataUpdateUrlFormatter | formatter | ) |
Specify a DataUpdateUrlFormatter to be used by the DataUpdateService when building the complete URL to query for updated data.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDataUpdateVerifyMd5 | ( | Boolean | verify | ) |
Set a value indicating if the DataUpdateService should expect the response from the data update URL to contain a 'content-md5' HTTP header that can be used to verify the integrity of the content.
Default true
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDifference | ( | int | difference | ) |
Set the maximum difference to allow when processing HTTP headers.
The meaning of difference depends on the Device Detection API being used. The difference is the difference in hash value between the hash that was found, and the hash that is being searched for. By default this is 0.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setDrift | ( | int | drift | ) |
Set the maximum drift to allow when matching hashes.
If the drift is exceeded, the result is considered invalid and values will not be returned. By default this is 0.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setPerformanceProfile | ( | Constants.PerformanceProfiles | profile | ) |
Set the performance profile for the device detection engine.
Defaults to balanced.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setProperty | ( | String | property | ) |
Add a property to the list of properties that the engine will populate in the response.
By default all properties will be populated.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setShareUsage | ( | boolean | enabled | ) |
Set share usage enabled/disabled.
Defaults to enabled.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setUpdatePollingInterval | ( | int | pollingIntervalSeconds | ) |
Set the time between checks for a new data file made by the DataUpdateService in seconds.
Default = 30 minutes.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setUpdatePollingIntervalMillis | ( | long | pollingIntervalMillis | ) |
Set the time between checks for a new data file made by the DataUpdateService in milliseconds.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setUpdateRandomisationMax | ( | int | randomisationMaxSeconds | ) |
A random element can be added to the DataUpdateService polling interval.
This option sets the maximum length of this random addition. Default = 10 minutes.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setUpdateRandomisationMaxMillis | ( | long | randomisationMaxMillis | ) |
A random element can be added to the DataUpdateService polling interval.
This option sets the maximum length of this random addition. Default = 10 minutes.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setUsePerformanceGraph | ( | boolean | use | ) |
Set whether or not the performance optimized graph is used for processing.
When processing evidence, the performance graph is optimised to find an answer as quick as possible. However, this can be at the expense of finding the best match for evidence which was not in the training data. If the predictive graph is also enabled, it will be used next if there was no match in the performance graph.
DeviceDetectionOnPremisePipelineBuilder fiftyone.devicedetection.DeviceDetectionOnPremisePipelineBuilder.setUsePredictiveGraph | ( | boolean | use | ) |
Set whether or not the predictive optimized graph is used for processing.
When processing evidence, the predictive graph is optimised to find the best answer for evidence which was not in the training data. However, this is at the expense of processing time, as more possibilities are taken into consideration.