public class BrowserStatisticsCollection extends Object
BrowserStatisticsCollection stores the all the supported browsers by the Grid and Nodes collectively. It
stores the maximum available instances of a particular browser in the Grid - Nodes farm along with the waiting
requests for a particular browser. This class is not thread safe, the clients are expected to create individual
instances of this class in separate threads.| Modifier and Type | Class and Description |
|---|---|
class |
BrowserStatisticsCollection.BrowserStatistics
BrowserStatistics holds the statistics for an individual browser. |
| Constructor and Description |
|---|
BrowserStatisticsCollection() |
| Modifier and Type | Method and Description |
|---|---|
List<BrowserStatisticsCollection.BrowserStatistics> |
getBrowserStatisticsList()
Returns the list of
BrowserStatisticsCollection.BrowserStatistics. |
void |
incrementWaitingRequests(String browserName)
Increments the waiting request for the provided browser name.
|
void |
setMaxBrowserInstances(String browserName,
int maxBrowserInstances)
Sets the maximum instances for a particular browser.
|
String |
toString() |
public List<BrowserStatisticsCollection.BrowserStatistics> getBrowserStatisticsList()
BrowserStatisticsCollection.BrowserStatistics.List of BrowserStatisticsCollection.BrowserStatistics.public void setMaxBrowserInstances(String browserName, int maxBrowserInstances)
browserName - Name of the browser.maxBrowserInstances - Maximum instances of the browser.public void incrementWaitingRequests(String browserName)
browserName - Name of the browser.Copyright © 2016 PayPal Open Source. All rights reserved.