Class RemoteNode
- java.lang.Object
-
- org.openqa.selenium.grid.node.Node
-
- org.openqa.selenium.grid.node.remote.RemoteNode
-
- All Implemented Interfaces:
HttpHandler
,Routable
,HasReadyState
public class RemoteNode extends Node
-
-
Constructor Summary
Constructors Constructor Description RemoteNode(Tracer tracer, HttpClient.Factory clientFactory, NodeId id, java.net.URI externalUri, Secret registrationSecret, java.util.Collection<Capabilities> capabilities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse
downloadFile(HttpRequest req, SessionId id)
void
drain()
HttpResponse
executeWebDriverCommand(HttpRequest req)
HealthCheck
getHealthCheck()
Session
getSession(SessionId id)
NodeStatus
getStatus()
boolean
isReady()
boolean
isSessionOwner(SessionId id)
boolean
isSupporting(Capabilities capabilities)
Either<WebDriverException,CreateSessionResponse>
newSession(CreateSessionRequest sessionRequest)
void
stop(SessionId id)
HttpResponse
uploadFile(HttpRequest req, SessionId id)
-
Methods inherited from class org.openqa.selenium.grid.node.Node
execute, getDownloadsFilesystem, getId, getNodeVersion, getOsInfo, getUploadsFilesystem, getUri, isDraining, matches
-
-
-
-
Field Detail
-
JSON
public static final Json JSON
-
-
Constructor Detail
-
RemoteNode
public RemoteNode(Tracer tracer, HttpClient.Factory clientFactory, NodeId id, java.net.URI externalUri, Secret registrationSecret, java.util.Collection<Capabilities> capabilities)
-
-
Method Detail
-
isReady
public boolean isReady()
-
isSupporting
public boolean isSupporting(Capabilities capabilities)
- Specified by:
isSupporting
in classNode
-
newSession
public Either<WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest)
- Specified by:
newSession
in classNode
-
isSessionOwner
public boolean isSessionOwner(SessionId id)
- Specified by:
isSessionOwner
in classNode
-
getSession
public Session getSession(SessionId id) throws NoSuchSessionException
- Specified by:
getSession
in classNode
- Throws:
NoSuchSessionException
-
executeWebDriverCommand
public HttpResponse executeWebDriverCommand(HttpRequest req)
- Specified by:
executeWebDriverCommand
in classNode
-
uploadFile
public HttpResponse uploadFile(HttpRequest req, SessionId id)
- Specified by:
uploadFile
in classNode
-
downloadFile
public HttpResponse downloadFile(HttpRequest req, SessionId id)
- Specified by:
downloadFile
in classNode
-
stop
public void stop(SessionId id) throws NoSuchSessionException
- Specified by:
stop
in classNode
- Throws:
NoSuchSessionException
-
getStatus
public NodeStatus getStatus()
-
getHealthCheck
public HealthCheck getHealthCheck()
- Specified by:
getHealthCheck
in classNode
-
-