Class DockerSessionFactory
java.lang.Object
org.openqa.selenium.grid.node.docker.DockerSessionFactory
- All Implemented Interfaces:
Function<CreateSessionRequest,,Either<WebDriverException, ActiveSession>> Predicate<Capabilities>,SessionFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDockerSessionFactory(Tracer tracer, HttpClient.Factory clientFactory, Duration sessionTimeout, Duration serverStartTimeout, Docker docker, URI dockerUri, Image browserImage, Capabilities stereotype, List<Device> devices, Image videoImage, DockerAssetsPath assetsPath, String networkName, boolean runningInDocker, Predicate<Capabilities> predicate, Map<String, Object> hostConfig, List<String> hostConfigKeys) -
Method Summary
Modifier and TypeMethodDescriptionapply(CreateSessionRequest sessionRequest) booleantest(Capabilities capabilities)
-
Constructor Details
-
DockerSessionFactory
public DockerSessionFactory(Tracer tracer, HttpClient.Factory clientFactory, Duration sessionTimeout, Duration serverStartTimeout, Docker docker, URI dockerUri, Image browserImage, Capabilities stereotype, List<Device> devices, Image videoImage, DockerAssetsPath assetsPath, String networkName, boolean runningInDocker, Predicate<Capabilities> predicate, Map<String, Object> hostConfig, List<String> hostConfigKeys)
-
-
Method Details
-
getStereotype
- Specified by:
getStereotypein interfaceSessionFactory
-
test
- Specified by:
testin interfacePredicate<Capabilities>
-
apply
- Specified by:
applyin interfaceFunction<CreateSessionRequest,Either<WebDriverException, ActiveSession>>
-