Class PortConflictDetector

java.lang.Object
io.kroxylicious.proxy.internal.PortConflictDetector

public class PortConflictDetector extends Object
Detects potential for port conflicts arising between virtual cluster configurations.
  • Constructor Details

    • PortConflictDetector

      public PortConflictDetector()
  • Method Details

    • validate

      public void validate(Collection<VirtualClusterModel> virtualClusterModelMap, Optional<HostPort> otherExclusivePort)
      Validates the configuration throwing an exception if a conflict is detected.
      Parameters:
      virtualClusterModelMap - map of virtual clusters.
      otherExclusivePort - an optional exclusive port that should conflict with virtual cluster ports