public class InboundPortsUtils
extends java.lang.Object
Constructor and Description |
---|
InboundPortsUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<java.lang.Integer> |
getRequiredOpenPorts(Entity entity,
java.lang.Boolean portsAutoInfer,
java.lang.String portRegex)
Returns the required open inbound ports for an Entity.
|
static java.util.Collection<java.lang.Integer> |
getRequiredOpenPorts(Entity entity,
java.util.Set<ConfigKey<?>> extraConfigKeys,
java.lang.Boolean portsAutoInfer,
java.lang.String portRegex)
Returns the required open inbound ports for an Entity.
|
public static java.util.Collection<java.lang.Integer> getRequiredOpenPorts(Entity entity, java.lang.Boolean portsAutoInfer, java.lang.String portRegex)
portsAutoInfer
is true
then
return the first value for each PortAttributeSensorAndConfigKey
config key PortRange
plus any ports defined with a config key matching the provided regex.entity
- the EntityportsAutoInfer
- if true
then also return the first value for each PortAttributeSensorAndConfigKey
config key PortRange
plus any ports defined with a config keys matching the provided regexportRegex
- the regex to match config keys that define inbound portspublic static java.util.Collection<java.lang.Integer> getRequiredOpenPorts(Entity entity, java.util.Set<ConfigKey<?>> extraConfigKeys, java.lang.Boolean portsAutoInfer, java.lang.String portRegex)
portsAutoInfer
is true
then
return the first value for each PortAttributeSensorAndConfigKey
config key PortRange
plus any ports defined with a config key matching the provided regex.
This method also accepts an extra set of config keys in addition to those that are defined in the EntityType of the entity itself.entity
- the EntityextraConfigKeys
- extra set of config key to inspect for inbound portsportsAutoInfer
- if true
then return the first value for each PortAttributeSensorAndConfigKey
config key PortRange
plus any ports defined with a config keys matching the provided regexportRegex
- the regex to match config keys that define inbound ports