Class LocalNode
- java.lang.Object
-
- org.openqa.selenium.grid.node.Node
-
- org.openqa.selenium.grid.node.local.LocalNode
-
- All Implemented Interfaces:
org.openqa.selenium.remote.http.HttpHandler
,org.openqa.selenium.remote.http.Routable
,HasReadyState
public class LocalNode extends Node
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocalNode.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
LocalNode(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, java.net.URI uri, java.net.URI gridUri, HealthCheck healthCheck, int maxSessionCount, int drainAfterSessionCount, boolean cdpEnabled, boolean bidiEnabled, com.google.common.base.Ticker ticker, java.time.Duration sessionTimeout, java.time.Duration heartbeatPeriod, java.util.List<SessionSlot> factories, Secret registrationSecret, boolean managedDownloadsEnabled)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalNode.Builder
builder(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, java.net.URI uri, java.net.URI gridUri, Secret registrationSecret)
org.openqa.selenium.remote.http.HttpResponse
downloadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id)
void
drain()
org.openqa.selenium.remote.http.HttpResponse
executeWebDriverCommand(org.openqa.selenium.remote.http.HttpRequest req)
Availability
getAvailability()
int
getCurrentSessionCount()
org.openqa.selenium.io.TemporaryFilesystem
getDownloadsFilesystem(java.util.UUID uuid)
java.util.UUID
getDownloadsIdForSession(org.openqa.selenium.remote.SessionId id)
java.net.URI
getExternalUri()
java.net.URI
getGridUri()
HealthCheck
getHealthCheck()
float
getLoad()
int
getMaxSessionCount()
java.lang.String
getNodeId()
Session
getSession(org.openqa.selenium.remote.SessionId id)
NodeStatus
getStatus()
int
getTotalSlots()
org.openqa.selenium.io.TemporaryFilesystem
getUploadsFilesystem(org.openqa.selenium.remote.SessionId id)
long
getUsedSlots()
boolean
isReady()
boolean
isSessionOwner(org.openqa.selenium.remote.SessionId id)
boolean
isSupporting(org.openqa.selenium.Capabilities capabilities)
org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,CreateSessionResponse>
newSession(CreateSessionRequest sessionRequest)
void
stop(org.openqa.selenium.remote.SessionId id)
org.openqa.selenium.remote.http.HttpResponse
uploadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id)
-
Methods inherited from class org.openqa.selenium.grid.node.Node
execute, getId, getNodeVersion, getOsInfo, getUri, isDraining, matches
-
-
-
-
Constructor Detail
-
LocalNode
protected LocalNode(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, java.net.URI uri, java.net.URI gridUri, HealthCheck healthCheck, int maxSessionCount, int drainAfterSessionCount, boolean cdpEnabled, boolean bidiEnabled, com.google.common.base.Ticker ticker, java.time.Duration sessionTimeout, java.time.Duration heartbeatPeriod, java.util.List<SessionSlot> factories, Secret registrationSecret, boolean managedDownloadsEnabled)
-
-
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()
-
getDownloadsIdForSession
public java.util.UUID getDownloadsIdForSession(org.openqa.selenium.remote.SessionId id)
-
getMaxSessionCount
public int getMaxSessionCount()
-
getAvailability
public Availability getAvailability()
-
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 classNode
-
newSession
public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest)
- Specified by:
newSession
in classNode
-
isSessionOwner
public boolean isSessionOwner(org.openqa.selenium.remote.SessionId id)
- Specified by:
isSessionOwner
in classNode
-
getSession
public Session getSession(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException
- Specified by:
getSession
in classNode
- Throws:
org.openqa.selenium.NoSuchSessionException
-
getUploadsFilesystem
public org.openqa.selenium.io.TemporaryFilesystem getUploadsFilesystem(org.openqa.selenium.remote.SessionId id) throws java.io.IOException
- Overrides:
getUploadsFilesystem
in classNode
- Throws:
java.io.IOException
-
getDownloadsFilesystem
public org.openqa.selenium.io.TemporaryFilesystem getDownloadsFilesystem(java.util.UUID uuid) throws java.io.IOException
- Overrides:
getDownloadsFilesystem
in classNode
- Throws:
java.io.IOException
-
executeWebDriverCommand
public org.openqa.selenium.remote.http.HttpResponse executeWebDriverCommand(org.openqa.selenium.remote.http.HttpRequest req)
- Specified by:
executeWebDriverCommand
in classNode
-
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 classNode
-
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 classNode
-
stop
public void stop(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException
-
getStatus
public NodeStatus getStatus()
-
getHealthCheck
public HealthCheck getHealthCheck()
- Specified by:
getHealthCheck
in classNode
-
-