Class LocalNode

java.lang.Object
org.openqa.selenium.grid.node.Node
org.openqa.selenium.grid.node.local.LocalNode
All Implemented Interfaces:
Closeable, AutoCloseable, org.openqa.selenium.remote.http.HttpHandler, org.openqa.selenium.remote.http.Routable, HasReadyState

public class LocalNode extends Node implements Closeable
  • Constructor Details

    • LocalNode

      protected LocalNode(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, URI uri, URI gridUri, HealthCheck healthCheck, int maxSessionCount, int drainAfterSessionCount, boolean cdpEnabled, boolean bidiEnabled, com.google.common.base.Ticker ticker, Duration sessionTimeout, Duration heartbeatPeriod, List<SessionSlot> factories, Secret registrationSecret, boolean managedDownloadsEnabled, int connectionLimitPerSession)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • builder

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

      public boolean isReady()
      Specified by:
      isReady in interface HasReadyState
    • getCurrentSessionCount

      public int getCurrentSessionCount()
    • getMaxSessionCount

      public int getMaxSessionCount()
    • getAvailability

      public Availability getAvailability()
    • getTotalSlots

      public int getTotalSlots()
    • getUsedSlots

      public long getUsedSlots()
    • getLoad

      public float getLoad()
    • getExternalUri

      public URI getExternalUri()
    • getGridUri

      public URI getGridUri()
    • getNodeId

      public String getNodeId()
    • isSupporting

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

      public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest)
      Specified by:
      newSession in class Node
    • isSessionOwner

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

      public boolean tryAcquireConnection(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException
      Specified by:
      tryAcquireConnection in class Node
      Throws:
      org.openqa.selenium.NoSuchSessionException
    • releaseConnection

      public void releaseConnection(org.openqa.selenium.remote.SessionId id)
      Specified by:
      releaseConnection 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
    • getUploadsFilesystem

      public org.openqa.selenium.io.TemporaryFilesystem getUploadsFilesystem(org.openqa.selenium.remote.SessionId id) throws IOException
      Overrides:
      getUploadsFilesystem in class Node
      Throws:
      IOException
    • getDownloadsFilesystem

      public org.openqa.selenium.io.TemporaryFilesystem getDownloadsFilesystem(org.openqa.selenium.remote.SessionId sessionId) throws IOException
      Overrides:
      getDownloadsFilesystem in class Node
      Throws:
      IOException
    • executeWebDriverCommand

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

      public org.openqa.selenium.remote.http.HttpResponse downloadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id)
      Specified by:
      downloadFile 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
    • getStatus

      public NodeStatus getStatus()
      Specified by:
      getStatus in class Node
    • getHealthCheck

      public HealthCheck getHealthCheck()
      Specified by:
      getHealthCheck in class Node
    • drain

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