Class BrowserId

java.lang.Object
com.tccc.kos.core.service.browser.BrowserId

public class BrowserId extends Object
Identifies a particular browser on a node. In a typical configuration, a node will only run a single browser and the default name of that browser is empty string. In cases where a node runs multiple browsers, each browser is named based on the name provided to the adapter that controls the browser.
Since:
1.0
Version:
2023-03-06
  • Constructor Details

    • BrowserId

      public BrowserId(NodeId nodeId)
      Create a new BrowserId to identify a particular browser instance on a node. This can be used when connecting to the default browser instance on a node which has no name.
      Parameters:
      nodeId - the node the browser is running on, null for current node
    • BrowserId

      public BrowserId(NodeId nodeId, String browserName)
      Create a new BrowserId to identify a particular browser instance on a node. Use this constructor if there is more than one browser running on the node. The name must match the name provided to the adapter that controls the particular browser instance.

      The default browser has no name (empty string) so this constructor can be used to identify the default browser by using empty string or null as the name.

      Parameters:
      nodeId - the node the browser is running on, null for current node
      browserName - the name of the browser instance
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNodeId

      public NodeId getNodeId()
    • getBrowserName

      public String getBrowserName()
    • setNodeId

      public void setNodeId(NodeId nodeId)
    • setBrowserName

      public void setBrowserName(String browserName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object