Class LocalNode
java.lang.Object
org.openqa.selenium.grid.node.Node
org.openqa.selenium.grid.node.local.LocalNode
- All Implemented Interfaces:
Closeable
,AutoCloseable
,HttpHandler
,Routable
,HasReadyState
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.openqa.selenium.grid.node.Node
draining, registered, tracer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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, int connectionLimitPerSession) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalNode.Builder
void
close()
downloadFile
(HttpRequest req, SessionId id) void
drain()
int
getDownloadsFilesystem
(SessionId sessionId) float
getLoad()
int
getSession
(SessionId id) int
long
boolean
isReady()
boolean
boolean
isSupporting
(Capabilities capabilities) newSession
(CreateSessionRequest sessionRequest) void
void
boolean
uploadFile
(HttpRequest req, SessionId id) Methods inherited from class org.openqa.selenium.grid.node.Node
execute, getId, getNodeVersion, getOsInfo, getSessionTimeout, getUri, isDraining, isRegistered, matches, register
-
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, int connectionLimitPerSession)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
builder
-
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
- Specified by:
isSupporting
in classNode
-
newSession
public Either<WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest) - Specified by:
newSession
in classNode
-
isSessionOwner
- Specified by:
isSessionOwner
in classNode
-
tryAcquireConnection
- Specified by:
tryAcquireConnection
in classNode
- Throws:
NoSuchSessionException
-
releaseConnection
- Specified by:
releaseConnection
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()
-