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
ConstructorsModifierConstructorDescriptionprotectedLocalNode(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.Buildervoidclose()downloadFile(HttpRequest req, SessionId id) voiddrain()intgetDownloadsFilesystem(SessionId sessionId) floatgetLoad()intgetSession(SessionId id) intlongbooleanisReady()booleanbooleanisSupporting(Capabilities capabilities) newSession(CreateSessionRequest sessionRequest) voidvoidbooleanuploadFile(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
builder
-
isReady
public boolean isReady()- Specified by:
isReadyin 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:
isSupportingin classNode
-
newSession
public Either<WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest) - Specified by:
newSessionin classNode
-
isSessionOwner
- Specified by:
isSessionOwnerin classNode
-
tryAcquireConnection
- Specified by:
tryAcquireConnectionin classNode- Throws:
NoSuchSessionException
-
releaseConnection
- Specified by:
releaseConnectionin classNode
-
getSession
- Specified by:
getSessionin classNode- Throws:
NoSuchSessionException
-
getUploadsFilesystem
- Overrides:
getUploadsFilesystemin classNode- Throws:
IOException
-
getDownloadsFilesystem
- Overrides:
getDownloadsFilesystemin classNode- Throws:
IOException
-
executeWebDriverCommand
- Specified by:
executeWebDriverCommandin classNode
-
downloadFile
- Specified by:
downloadFilein classNode
-
uploadFile
- Specified by:
uploadFilein classNode
-
stop
- Specified by:
stopin classNode- Throws:
NoSuchSessionException
-
getStatus
-
getHealthCheck
- Specified by:
getHealthCheckin classNode
-
drain
public void drain()
-