public class PortEarlyPropertyChecker extends Object implements SubsystemEarlyPropertyChecker
SubsystemEarlyPropertyChecker| Constructor and Description |
|---|
PortEarlyPropertyChecker(String subsystemName,
boolean hasMultiplePorts,
boolean shouldCheckForBlockedPort)
Create a new
PortEarlyPropertyChecker w/o a paired property name. |
PortEarlyPropertyChecker(String subsystemName,
String requiredPairedPropertyName,
boolean hasMultiplePorts,
boolean shouldCheckForBlockedPort)
Create a new
PortEarlyPropertyChecker. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkPort(int portNumber,
String host) |
void |
checkPropertyValue(String propertyName,
String propertyValue,
String pairedPropertyValue)
Implementation of checkPropertyValue() method for port checking.
|
String |
getPairedPropertyName()
Get the (optional) paired property name (e.g., if we want to check a port
number we might want to do that together with a specific local address).
|
public PortEarlyPropertyChecker(String subsystemName, boolean hasMultiplePorts, boolean shouldCheckForBlockedPort)
PortEarlyPropertyChecker w/o a paired property name.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).public PortEarlyPropertyChecker(String subsystemName, String requiredPairedPropertyName, boolean hasMultiplePorts, boolean shouldCheckForBlockedPort)
PortEarlyPropertyChecker.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).public void checkPropertyValue(String propertyName, String propertyValue, String pairedPropertyValue) throws InvalidPropertyValueException
checkPropertyValue in interface SubsystemEarlyPropertyCheckerpropertyName - Name of the property.propertyValue - Port value; if this contains multiple ports they must be separated by ",".pairedPropertyValue - - Value of the paired propertyInvalidPropertyValueException - Raised if any of the checks fail.protected void checkPort(int portNumber,
String host)
throws IOException
IOExceptionpublic String getPairedPropertyName()
SubsystemEarlyPropertyCheckergetPairedPropertyName in interface SubsystemEarlyPropertyCheckerCopyright © 2005–2018 Alfresco Software. All rights reserved.