Class LocalDistributor
- java.lang.Object
-
- org.openqa.selenium.grid.distributor.Distributor
-
- org.openqa.selenium.grid.distributor.local.LocalDistributor
-
- 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
public class LocalDistributor extends Distributor
-
-
Constructor Summary
Constructors Constructor Description LocalDistributor(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, SessionMap sessions, java.lang.String registrationSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDistributor
add(Node node)
DistributorStatus
getStatus()
CreateSessionResponse
newSession(org.openqa.selenium.remote.http.HttpRequest request)
void
refresh()
void
remove(java.util.UUID nodeId)
-
Methods inherited from class org.openqa.selenium.grid.distributor.Distributor
execute, matches, test
-
-
-
-
Constructor Detail
-
LocalDistributor
public LocalDistributor(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, SessionMap sessions, java.lang.String registrationSecret)
-
-
Method Detail
-
newSession
public CreateSessionResponse newSession(org.openqa.selenium.remote.http.HttpRequest request) throws org.openqa.selenium.SessionNotCreatedException
- Specified by:
newSession
in classDistributor
- Throws:
org.openqa.selenium.SessionNotCreatedException
-
add
public LocalDistributor add(Node node)
- Specified by:
add
in classDistributor
-
remove
public void remove(java.util.UUID nodeId)
- Specified by:
remove
in classDistributor
-
getStatus
public DistributorStatus getStatus()
- Specified by:
getStatus
in classDistributor
-
refresh
@Beta public void refresh()
-
-