- /**
- * Topic sinks that are used by {@link #topicServers}.
- */
- private List<@Valid TopicParameters> topicSinks = new LinkedList<>();
-
- /**
- * Topic sources that are used by {@link #topicServers}.
- */
- private List<@Valid TopicParameters> topicSources = new LinkedList<>();
-
- /**
- * Parameters for the TOPIC server simulators that are to be started.
- */
- private List<@Valid TopicServerParameters> topicServers = new LinkedList<>();
-
-
- /**
- * Validates the parameters.
- *
- * @param containerName name of the parameter container
- * @return the validation result
- */
- public BeanValidationResult validate(String containerName) {
- BeanValidationResult result = new BeanValidator().validateTop(containerName, this);
-
- if (dmaapProvider != null) {
- // do not want full validation of the provider, so validate the relevant
- // fields ourselves
- var subResult = new BeanValidationResult("dmaapProvider", dmaapProvider);
- subResult.validateNotNull("name", dmaapProvider.getName());
- if (dmaapProvider.getTopicSweepSec() < 1) {
- subResult.addResult("topicSweepSec", dmaapProvider.getTopicSweepSec(),
- ValidationStatus.INVALID, "is below the minimum value: 1");
- }
- result.addResult(subResult);
- }