Class SessionSlot
- java.lang.Object
-
- org.openqa.selenium.grid.node.local.SessionSlot
-
- All Implemented Interfaces:
java.util.function.Function<CreateSessionRequest,Either<WebDriverException,ActiveSession>>
,java.util.function.Predicate<Capabilities>
,HttpHandler
public class SessionSlot extends java.lang.Object implements HttpHandler, java.util.function.Function<CreateSessionRequest,Either<WebDriverException,ActiveSession>>, java.util.function.Predicate<Capabilities>
-
-
Constructor Summary
Constructors Constructor Description SessionSlot(EventBus bus, Capabilities stereotype, SessionFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Either<WebDriverException,ActiveSession>
apply(CreateSessionRequest sessionRequest)
HttpResponse
execute(HttpRequest req)
java.util.UUID
getId()
ActiveSession
getSession()
Capabilities
getStereotype()
boolean
hasRelayFactory()
boolean
isAvailable()
boolean
isRelayServiceUp()
boolean
isSupportingBiDi()
boolean
isSupportingCdp()
void
release()
void
reserve()
void
stop()
boolean
test(Capabilities capabilities)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openqa.selenium.remote.http.HttpHandler
with
-
-
-
-
Constructor Detail
-
SessionSlot
public SessionSlot(EventBus bus, Capabilities stereotype, SessionFactory factory)
-
-
Method Detail
-
getId
public java.util.UUID getId()
-
getStereotype
public Capabilities getStereotype()
-
reserve
public void reserve()
-
release
public void release()
-
isAvailable
public boolean isAvailable()
-
getSession
public ActiveSession getSession()
-
stop
public void stop()
-
execute
public HttpResponse execute(HttpRequest req) throws java.io.UncheckedIOException
- Specified by:
execute
in interfaceHttpHandler
- Throws:
java.io.UncheckedIOException
-
test
public boolean test(Capabilities capabilities)
- Specified by:
test
in interfacejava.util.function.Predicate<Capabilities>
-
apply
public Either<WebDriverException,ActiveSession> apply(CreateSessionRequest sessionRequest)
- Specified by:
apply
in interfacejava.util.function.Function<CreateSessionRequest,Either<WebDriverException,ActiveSession>>
-
isSupportingCdp
public boolean isSupportingCdp()
-
isSupportingBiDi
public boolean isSupportingBiDi()
-
hasRelayFactory
public boolean hasRelayFactory()
-
isRelayServiceUp
public boolean isRelayServiceUp()
-
-