Class Network.Interface.Selector

    • Constructor Detail

      • Selector

        public Selector()
    • Method Detail

      • interfaceAllowed

        public void interfaceAllowed​(String regex)
        Add a regular expression to the set of regular expressions that may match the name of the interface names to be included into the calculation of the machine ID. If any of such regular expressions matches the name of the network interface name and none of the denied list then the interface will be used in the calculation of the machine id.
        Parameters:
        regex - the regular expression that may match the name of the interface name
      • interfaceDenied

        public void interfaceDenied​(String regex)
        Add a regular expression to the set of regular expressions that may match the name of the interface names to be excluded from the calculation of the machine ID. If any of such regular expressions matches the name of the network interface name then the interface will NOT be used in the calculation of the machine id.
        Parameters:
        regex - the regular expression that may match the name of the interface name to exclude the interface from the machine ID calculation