Package io.kroxylicious.proxy.internal
Class PortConflictDetector
java.lang.Object
io.kroxylicious.proxy.internal.PortConflictDetector
Detects potential for port conflicts arising between virtual cluster configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(Collection<VirtualClusterModel> virtualClusterModelMap, Optional<HostPort> otherExclusivePort) Validates the configuration throwing an exception if a conflict is detected.
-
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
-