Class PortEarlyPropertyChecker

java.lang.Object
org.alfresco.repo.management.subsystems.PortEarlyPropertyChecker
All Implemented Interfaces:
SubsystemEarlyPropertyChecker

public class PortEarlyPropertyChecker extends Object implements SubsystemEarlyPropertyChecker
"Early" checker for Port property value (checks for "null/empty", "out-of-bounds", "unable-to-parse", "already-in-use" problems). Also see the implemented interface SubsystemEarlyPropertyChecker
Author:
abalmus
  • Constructor Details

    • PortEarlyPropertyChecker

      public PortEarlyPropertyChecker(String subsystemName, boolean hasMultiplePorts, boolean shouldCheckForBlockedPort)
      Create a new PortEarlyPropertyChecker w/o a paired property name.
      Parameters:
      subsystemName - Name of the subsystem; used for custom error messages.
      hasMultiplePorts - Specify if the property value that will be checked is a list of ports (they must be separated by ",").
      shouldCheckForBlockedPort - Enable/disable checking for port-already-in-use (i.e.: disable this for remote ports).
    • PortEarlyPropertyChecker

      public PortEarlyPropertyChecker(String subsystemName, String requiredPairedPropertyName, boolean hasMultiplePorts, boolean shouldCheckForBlockedPort)
      Parameters:
      subsystemName - Name of the subsystem; used for custom error messages.
      requiredPairedPropertyName - Name of the required paired property (see SubsystemEarlyPropertyChecker.getPairedPropertyName()).
      hasMultiplePorts - Specify if the property value that will be checked is a list of ports (they must be separated by ",").
      shouldCheckForBlockedPort - Enable/disable checking for port-already-in-use (i.e.: disable this for remote ports).
  • Method Details