Class RemoteNode
java.lang.Object
org.openqa.selenium.grid.node.Node
org.openqa.selenium.grid.node.remote.RemoteNode
- All Implemented Interfaces:
Closeable,AutoCloseable,org.openqa.selenium.remote.http.HttpHandler,org.openqa.selenium.remote.http.Routable,HasReadyState
-
Field Summary
FieldsFields inherited from class org.openqa.selenium.grid.node.Node
draining, registered, tracer -
Constructor Summary
ConstructorsConstructorDescriptionRemoteNode(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, NodeId id, URI externalUri, Secret registrationSecret, Duration sessionTimeout, Collection<org.openqa.selenium.Capabilities> capabilities) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.openqa.selenium.remote.http.HttpResponsedownloadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id) voiddrain()org.openqa.selenium.remote.http.HttpResponseexecuteWebDriverCommand(org.openqa.selenium.remote.http.HttpRequest req) getSession(org.openqa.selenium.remote.SessionId id) booleanisReady()booleanisSessionOwner(org.openqa.selenium.remote.SessionId id) booleanisSupporting(org.openqa.selenium.Capabilities capabilities) org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException, CreateSessionResponse> newSession(CreateSessionRequest sessionRequest) voidreleaseConnection(org.openqa.selenium.remote.SessionId id) voidstop(org.openqa.selenium.remote.SessionId id) booleantryAcquireConnection(org.openqa.selenium.remote.SessionId id) org.openqa.selenium.remote.http.HttpResponseuploadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id) Methods inherited from class org.openqa.selenium.grid.node.Node
execute, getDownloadsFilesystem, getId, getNodeVersion, getOsInfo, getSessionTimeout, getUploadsFilesystem, getUri, isDraining, isRegistered, matches, registerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openqa.selenium.remote.http.Routable
with
-
Field Details
-
JSON
public static final org.openqa.selenium.json.Json JSON
-
-
Constructor Details
-
RemoteNode
public RemoteNode(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, NodeId id, URI externalUri, Secret registrationSecret, Duration sessionTimeout, Collection<org.openqa.selenium.Capabilities> capabilities)
-
-
Method Details
-
isReady
public boolean isReady()- Specified by:
isReadyin interfaceHasReadyState
-
isSupporting
public boolean isSupporting(org.openqa.selenium.Capabilities capabilities) - Specified by:
isSupportingin classNode
-
newSession
public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest) - Specified by:
newSessionin classNode
-
isSessionOwner
public boolean isSessionOwner(org.openqa.selenium.remote.SessionId id) - Specified by:
isSessionOwnerin classNode
-
tryAcquireConnection
public boolean tryAcquireConnection(org.openqa.selenium.remote.SessionId id) - Specified by:
tryAcquireConnectionin classNode
-
releaseConnection
public void releaseConnection(org.openqa.selenium.remote.SessionId id) - Specified by:
releaseConnectionin classNode
-
getSession
public Session getSession(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException - Specified by:
getSessionin classNode- Throws:
org.openqa.selenium.NoSuchSessionException
-
executeWebDriverCommand
public org.openqa.selenium.remote.http.HttpResponse executeWebDriverCommand(org.openqa.selenium.remote.http.HttpRequest req) - Specified by:
executeWebDriverCommandin classNode
-
uploadFile
public org.openqa.selenium.remote.http.HttpResponse uploadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id) - Specified by:
uploadFilein classNode
-
downloadFile
public org.openqa.selenium.remote.http.HttpResponse downloadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id) - Specified by:
downloadFilein classNode
-
stop
public void stop(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException -
getStatus
-
getHealthCheck
- Specified by:
getHealthCheckin classNode
-
drain
public void drain() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-