Class RemoteDistributor
java.lang.Object
org.openqa.selenium.grid.distributor.Distributor
org.openqa.selenium.grid.distributor.remote.RemoteDistributor
- All Implemented Interfaces:
Predicate<HttpRequest>
,HttpHandler
,Routable
,HasReadyState
-
Field Summary
Fields inherited from class org.openqa.selenium.grid.distributor.Distributor
tracer
-
Constructor Summary
ConstructorDescriptionRemoteDistributor
(Tracer tracer, HttpClient.Factory factory, URL url, Secret registrationSecret) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isReady()
newSession
(SessionRequest sessionRequest) void
Methods inherited from class org.openqa.selenium.grid.distributor.Distributor
execute, matches, test
-
Constructor Details
-
RemoteDistributor
public RemoteDistributor(Tracer tracer, HttpClient.Factory factory, URL url, Secret registrationSecret)
-
-
Method Details
-
isReady
public boolean isReady() -
add
- Specified by:
add
in classDistributor
-
drain
- Specified by:
drain
in classDistributor
-
remove
- Specified by:
remove
in classDistributor
-
getStatus
- Specified by:
getStatus
in classDistributor
-
newSession
public Either<SessionNotCreatedException,CreateSessionResponse> newSession(SessionRequest sessionRequest) throws SessionNotCreatedException - Specified by:
newSession
in classDistributor
- Throws:
SessionNotCreatedException
-