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
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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 Summary
Modifier and TypeMethodDescriptionstatic LocalNode.Builder
builder
(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, URI uri, URI gridUri, Secret registrationSecret) void
close()
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) int
org.openqa.selenium.io.TemporaryFilesystem
getDownloadsFilesystem
(org.openqa.selenium.remote.SessionId sessionId) float
getLoad()
int
getSession
(org.openqa.selenium.remote.SessionId id) int
org.openqa.selenium.io.TemporaryFilesystem
getUploadsFilesystem
(org.openqa.selenium.remote.SessionId id) long
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
releaseConnection
(org.openqa.selenium.remote.SessionId id) void
stop
(org.openqa.selenium.remote.SessionId id) boolean
tryAcquireConnection
(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, getSessionTimeout, getUri, isDraining, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openqa.selenium.remote.http.Routable
with
-
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 interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
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 interfaceHasReadyState
-
getCurrentSessionCount
public int getCurrentSessionCount() -
getMaxSessionCount
public int getMaxSessionCount() -
getAvailability
-
getTotalSlots
public int getTotalSlots() -
getUsedSlots
public long getUsedSlots() -
getLoad
public float getLoad() -
getExternalUri
-
getGridUri
-
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
-
tryAcquireConnection
public boolean tryAcquireConnection(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException - Specified by:
tryAcquireConnection
in classNode
- Throws:
org.openqa.selenium.NoSuchSessionException
-
releaseConnection
public void releaseConnection(org.openqa.selenium.remote.SessionId id) - Specified by:
releaseConnection
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 IOException - Overrides:
getUploadsFilesystem
in classNode
- Throws:
IOException
-
getDownloadsFilesystem
public org.openqa.selenium.io.TemporaryFilesystem getDownloadsFilesystem(org.openqa.selenium.remote.SessionId sessionId) throws IOException - Overrides:
getDownloadsFilesystem
in classNode
- Throws:
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
-
getHealthCheck
- Specified by:
getHealthCheck
in classNode
-
drain
public void drain()
-