Class RemoteDistributor
- java.lang.Object
-
- org.openqa.selenium.grid.distributor.Distributor
-
- org.openqa.selenium.grid.distributor.remote.RemoteDistributor
-
- All Implemented Interfaces:
java.util.function.Predicate<org.openqa.selenium.remote.http.HttpRequest>
,org.openqa.selenium.remote.http.HttpHandler
,org.openqa.selenium.remote.http.Routable
,HasReadyState
public class RemoteDistributor extends Distributor
-
-
Field Summary
-
Fields inherited from class org.openqa.selenium.grid.distributor.Distributor
tracer
-
-
Constructor Summary
Constructors Constructor Description RemoteDistributor(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory factory, java.net.URL url, Secret registrationSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteDistributor
add(Node node)
boolean
drain(NodeId nodeId)
DistributorStatus
getStatus()
boolean
isReady()
org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException,CreateSessionResponse>
newSession(SessionRequest sessionRequest)
void
remove(NodeId nodeId)
-
Methods inherited from class org.openqa.selenium.grid.distributor.Distributor
execute, matches, test
-
-
-
-
Constructor Detail
-
RemoteDistributor
public RemoteDistributor(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory factory, java.net.URL url, Secret registrationSecret)
-
-
Method Detail
-
isReady
public boolean isReady()
-
add
public RemoteDistributor add(Node node)
- Specified by:
add
in classDistributor
-
drain
public boolean drain(NodeId nodeId)
- Specified by:
drain
in classDistributor
-
remove
public void remove(NodeId nodeId)
- Specified by:
remove
in classDistributor
-
getStatus
public DistributorStatus getStatus()
- Specified by:
getStatus
in classDistributor
-
newSession
public org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException,CreateSessionResponse> newSession(SessionRequest sessionRequest) throws org.openqa.selenium.SessionNotCreatedException
- Specified by:
newSession
in classDistributor
- Throws:
org.openqa.selenium.SessionNotCreatedException
-
-