Class LocalNode

  • All Implemented Interfaces:
    org.openqa.selenium.remote.http.HttpHandler, org.openqa.selenium.remote.http.Routable, HasReadyState

    public class LocalNode
    extends Node
    • Method Detail

      • builder

        public static LocalNode.Builder builder​(org.openqa.selenium.remote.tracing.Tracer tracer,
                                                EventBus bus,
                                                java.net.URI uri,
                                                java.net.URI gridUri,
                                                Secret registrationSecret)
      • isReady

        public boolean isReady()
      • getCurrentSessionCount

        public int getCurrentSessionCount()
      • getMaxSessionCount

        public int getMaxSessionCount()
      • getTotalSlots

        public int getTotalSlots()
      • getUsedSlots

        public long getUsedSlots()
      • getLoad

        public float getLoad()
      • getExternalUri

        public java.net.URI getExternalUri()
      • getGridUri

        public java.net.URI getGridUri()
      • getNodeId

        public java.lang.String getNodeId()
      • isSupporting

        public boolean isSupporting​(org.openqa.selenium.Capabilities capabilities)
        Specified by:
        isSupporting in class Node
      • isSessionOwner

        public boolean isSessionOwner​(org.openqa.selenium.remote.SessionId id)
        Specified by:
        isSessionOwner in class Node
      • getSession

        public Session getSession​(org.openqa.selenium.remote.SessionId id)
                           throws org.openqa.selenium.NoSuchSessionException
        Specified by:
        getSession in class Node
        Throws:
        org.openqa.selenium.NoSuchSessionException
      • getTemporaryFilesystem

        public org.openqa.selenium.io.TemporaryFilesystem getTemporaryFilesystem​(org.openqa.selenium.remote.SessionId id)
                                                                          throws java.io.IOException
        Overrides:
        getTemporaryFilesystem in class Node
        Throws:
        java.io.IOException
      • executeWebDriverCommand

        public org.openqa.selenium.remote.http.HttpResponse executeWebDriverCommand​(org.openqa.selenium.remote.http.HttpRequest req)
        Specified by:
        executeWebDriverCommand in class Node
      • uploadFile

        public org.openqa.selenium.remote.http.HttpResponse uploadFile​(org.openqa.selenium.remote.http.HttpRequest req,
                                                                       org.openqa.selenium.remote.SessionId id)
        Specified by:
        uploadFile in class Node
      • stop

        public void stop​(org.openqa.selenium.remote.SessionId id)
                  throws org.openqa.selenium.NoSuchSessionException
        Specified by:
        stop in class Node
        Throws:
        org.openqa.selenium.NoSuchSessionException
      • drain

        public void drain()
        Specified by:
        drain in class Node