public final class Concurrent extends Object implements AutoCloseable
| Constructor and Description |
|---|
Concurrent(Arg<Timeout> trd,
Arg<Integer> qtt)
Ctor.
|
Concurrent(org.cactoos.Scalar<ExecutorService> exc,
org.cactoos.Scalar<Timeout> thrd,
org.cactoos.Scalar<Timeout> swn)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TestingOutcome |
execute(String image,
org.cactoos.Text container,
Tags tags)
Execute the testing.
|
public Concurrent(Arg<Timeout> trd, Arg<Integer> qtt)
trd - Timeout per each thread.qtt - Quantity of concurrent threads to be used for testing.public Concurrent(org.cactoos.Scalar<ExecutorService> exc, org.cactoos.Scalar<Timeout> thrd, org.cactoos.Scalar<Timeout> swn)
exc - Instance of executor service for concurrent execution.thrd - Timeout per single thread dedicated to task(test) execution.swn - Timeout for shutdown of executor service.
Current class implements AutoCloseable interface and
should be used within try-with-resource block. It means that timeout
will be used once all tasks are already completed, therefore, it doesn't
require long timings.public TestingOutcome execute(String image, org.cactoos.Text container, Tags tags)
image - The Docker image name.container - The Docker container name.tags - The YML file with tags as object.public void close()
close in interface AutoCloseableCopyright © 2019. All rights reserved.