Class SessionSlot
- java.lang.Object
-
- org.openqa.selenium.grid.node.local.SessionSlot
-
- All Implemented Interfaces:
java.util.function.Function<CreateSessionRequest,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession>>,java.util.function.Predicate<org.openqa.selenium.Capabilities>,org.openqa.selenium.remote.http.HttpHandler
public class SessionSlot extends java.lang.Object implements org.openqa.selenium.remote.http.HttpHandler, java.util.function.Function<CreateSessionRequest,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession>>, java.util.function.Predicate<org.openqa.selenium.Capabilities>
-
-
Constructor Summary
Constructors Constructor Description SessionSlot(EventBus bus, org.openqa.selenium.Capabilities stereotype, SessionFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession>apply(CreateSessionRequest sessionRequest)org.openqa.selenium.remote.http.HttpResponseexecute(org.openqa.selenium.remote.http.HttpRequest req)java.util.UUIDgetId()ActiveSessiongetSession()org.openqa.selenium.CapabilitiesgetStereotype()booleanisAvailable()booleanisSupportingCdp()voidrelease()voidreserve()voidstop()booleantest(org.openqa.selenium.Capabilities capabilities)
-
-
-
Constructor Detail
-
SessionSlot
public SessionSlot(EventBus bus, org.openqa.selenium.Capabilities stereotype, SessionFactory factory)
-
-
Method Detail
-
getId
public java.util.UUID getId()
-
getStereotype
public org.openqa.selenium.Capabilities getStereotype()
-
reserve
public void reserve()
-
release
public void release()
-
isAvailable
public boolean isAvailable()
-
getSession
public ActiveSession getSession()
-
stop
public void stop()
-
execute
public org.openqa.selenium.remote.http.HttpResponse execute(org.openqa.selenium.remote.http.HttpRequest req) throws java.io.UncheckedIOException- Specified by:
executein interfaceorg.openqa.selenium.remote.http.HttpHandler- Throws:
java.io.UncheckedIOException
-
test
public boolean test(org.openqa.selenium.Capabilities capabilities)
- Specified by:
testin interfacejava.util.function.Predicate<org.openqa.selenium.Capabilities>
-
apply
public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession> apply(CreateSessionRequest sessionRequest)
- Specified by:
applyin interfacejava.util.function.Function<CreateSessionRequest,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession>>
-
isSupportingCdp
public boolean isSupportingCdp()
-
-