Class LocalNode
java.lang.Object
org.openqa.selenium.grid.node.Node
org.openqa.selenium.grid.node.local.LocalNode
- All Implemented Interfaces:
HttpHandler
,Routable
,HasReadyState
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
LocalNode
(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) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalNode.Builder
downloadFile
(HttpRequest req, SessionId id) void
drain()
int
getDownloadsFilesystem
(UUID uuid) float
getLoad()
int
getSession
(SessionId id) int
long
boolean
isReady()
boolean
boolean
isSupporting
(Capabilities capabilities) newSession
(CreateSessionRequest sessionRequest) void
uploadFile
(HttpRequest req, SessionId id) Methods inherited from class org.openqa.selenium.grid.node.Node
execute, getId, getNodeVersion, getOsInfo, getSessionTimeout, getUri, isDraining, matches
-
Constructor Details
-
LocalNode
protected LocalNode(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)
-
-
Method Details
-
builder
-
isReady
public boolean isReady() -
getCurrentSessionCount
public int getCurrentSessionCount() -
getDownloadsIdForSession
-
getMaxSessionCount
public int getMaxSessionCount() -
getAvailability
-
getTotalSlots
public int getTotalSlots() -
getUsedSlots
public long getUsedSlots() -
getLoad
public float getLoad() -
getExternalUri
-
getGridUri
-
getNodeId
-
isSupporting
- Specified by:
isSupporting
in classNode
-
newSession
public Either<WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest) - Specified by:
newSession
in classNode
-
isSessionOwner
- Specified by:
isSessionOwner
in classNode
-
getSession
- Specified by:
getSession
in classNode
- Throws:
NoSuchSessionException
-
getUploadsFilesystem
- Overrides:
getUploadsFilesystem
in classNode
- Throws:
IOException
-
getDownloadsFilesystem
- Overrides:
getDownloadsFilesystem
in classNode
- Throws:
IOException
-
executeWebDriverCommand
- Specified by:
executeWebDriverCommand
in classNode
-
downloadFile
- Specified by:
downloadFile
in classNode
-
uploadFile
- Specified by:
uploadFile
in classNode
-
stop
- Specified by:
stop
in classNode
- Throws:
NoSuchSessionException
-
getStatus
-
getHealthCheck
- Specified by:
getHealthCheck
in classNode
-
drain
public void drain()
-