Class RemoteNode
java.lang.Object
org.openqa.selenium.grid.node.Node
org.openqa.selenium.grid.node.remote.RemoteNode
- All Implemented Interfaces:
Closeable
,AutoCloseable
,HttpHandler
,Routable
,HasReadyState
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRemoteNode
(Tracer tracer, HttpClient.Factory clientFactory, NodeId id, URI externalUri, Secret registrationSecret, Duration sessionTimeout, Collection<Capabilities> capabilities) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
downloadFile
(HttpRequest req, SessionId id) void
drain()
getSession
(SessionId id) 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, getDownloadsFilesystem, getId, getNodeVersion, getOsInfo, getSessionTimeout, getUploadsFilesystem, getUri, isDraining, matches
-
Field Details
-
JSON
-
-
Constructor Details
-
RemoteNode
public RemoteNode(Tracer tracer, HttpClient.Factory clientFactory, NodeId id, URI externalUri, Secret registrationSecret, Duration sessionTimeout, Collection<Capabilities> capabilities)
-
-
Method Details
-
isReady
public boolean isReady()- Specified by:
isReady
in interfaceHasReadyState
-
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
-
executeWebDriverCommand
- Specified by:
executeWebDriverCommand
in classNode
-
uploadFile
- Specified by:
uploadFile
in classNode
-
downloadFile
- Specified by:
downloadFile
in classNode
-
stop
- Specified by:
stop
in classNode
- Throws:
NoSuchSessionException
-
getStatus
-
getHealthCheck
- Specified by:
getHealthCheck
in classNode
-
drain
public void drain() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-