test_class.file: flink-core/src/test/java/org/apache/flink/util/NetUtilsTest.java
test_class.identifier: NetUtilsTest
test_case.body: @Test
  	public void testIPv6toURL() {
  		try {
  			final String addressString = "2001:01db8:00:0:00:ff00:42:8329";
  			final String normalizedAddress = "[2001:1db8::ff00:42:8329]";
  
  			InetAddress address = InetAddress.getByName(addressString);
  			assertEquals(normalizedAddress, NetUtils.ipAddressToUrlString(address));
  		}
  		catch (Exception e) {
  			e.printStackTrace();
  			fail(e.getMessage());
  		}
  	}
test_case.class_method_signature: NetUtilsTest.testIPv6toURL()
test_case.full_signature: @Test public void testIPv6toURL()
test_case.identifier: testIPv6toURL
test_case.invocations: getByName assertEquals ipAddressToUrlString printStackTrace fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIPv6toURL()
focal_class.declarator: LOG = LoggerFactory.getLogger(NetUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(NetUtils.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.file: flink-core/src/main/java/org/apache/flink/util/NetUtils.java
focal_class.identifier: NetUtils
focal_class.class_method_signature: NetUtils.getHostnameFromFQDN(String fqdn)
focal_class.full_signature: public static String getHostnameFromFQDN(String fqdn)
focal_class.identifier: getHostnameFromFQDN
focal_class.modifiers: public static
focal_class.parameters: (String fqdn)
focal_class.return: String
focal_class.signature: String getHostnameFromFQDN(String fqdn)
focal_class.class_method_signature: NetUtils.getCorrectHostnamePort(String hostPort)
focal_class.full_signature: public static URL getCorrectHostnamePort(String hostPort)
focal_class.identifier: getCorrectHostnamePort
focal_class.modifiers: public static
focal_class.parameters: (String hostPort)
focal_class.return: URL
focal_class.signature: URL getCorrectHostnamePort(String hostPort)
focal_class.class_method_signature: NetUtils.getAvailablePort()
focal_class.full_signature: public static int getAvailablePort()
focal_class.identifier: getAvailablePort
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getAvailablePort()
focal_class.class_method_signature: NetUtils.ipAddressToUrlString(InetAddress address)
focal_class.full_signature: public static String ipAddressToUrlString(InetAddress address)
focal_class.identifier: ipAddressToUrlString
focal_class.modifiers: public static
focal_class.parameters: (InetAddress address)
focal_class.return: String
focal_class.signature: String ipAddressToUrlString(InetAddress address)
focal_class.class_method_signature: NetUtils.ipAddressAndPortToUrlString(InetAddress address, int port)
focal_class.full_signature: public static String ipAddressAndPortToUrlString(InetAddress address, int port)
focal_class.identifier: ipAddressAndPortToUrlString
focal_class.modifiers: public static
focal_class.parameters: (InetAddress address, int port)
focal_class.return: String
focal_class.signature: String ipAddressAndPortToUrlString(InetAddress address, int port)
focal_class.class_method_signature: NetUtils.socketAddressToUrlString(InetSocketAddress address)
focal_class.full_signature: public static String socketAddressToUrlString(InetSocketAddress address)
focal_class.identifier: socketAddressToUrlString
focal_class.modifiers: public static
focal_class.parameters: (InetSocketAddress address)
focal_class.return: String
focal_class.signature: String socketAddressToUrlString(InetSocketAddress address)
focal_class.class_method_signature: NetUtils.hostAndPortToUrlString(String host, int port)
focal_class.full_signature: public static String hostAndPortToUrlString(String host, int port)
focal_class.identifier: hostAndPortToUrlString
focal_class.modifiers: public static
focal_class.parameters: (String host, int port)
focal_class.return: String
focal_class.signature: String hostAndPortToUrlString(String host, int port)
focal_class.class_method_signature: NetUtils.getPortRangeFromString(String rangeDefinition)
focal_class.full_signature: public static Iterator<Integer> getPortRangeFromString(String rangeDefinition)
focal_class.identifier: getPortRangeFromString
focal_class.modifiers: public static
focal_class.parameters: (String rangeDefinition)
focal_class.return: Iterator<Integer>
focal_class.signature: Iterator<Integer> getPortRangeFromString(String rangeDefinition)
focal_class.class_method_signature: NetUtils.createSocketFromPorts(Iterator<Integer> portsIterator, SocketFactory factory)
focal_class.full_signature: public static ServerSocket createSocketFromPorts(Iterator<Integer> portsIterator, SocketFactory factory)
focal_class.identifier: createSocketFromPorts
focal_class.modifiers: public static
focal_class.parameters: (Iterator<Integer> portsIterator, SocketFactory factory)
focal_class.return: ServerSocket
focal_class.signature: ServerSocket createSocketFromPorts(Iterator<Integer> portsIterator, SocketFactory factory)
focal_method.body: public static String ipAddressToUrlString(InetAddress address) {
  		if (address == null) {
  			throw new NullPointerException("address is null");
  		}
  		else if (address instanceof Inet4Address) {
  			return address.getHostAddress();
  		}
  		else if (address instanceof Inet6Address) {
  			return '[' + InetAddresses.toAddrString(address) + ']';
  		}
  		else {
  			throw new IllegalArgumentException("Unrecognized type of InetAddress: " + address);
  		}
  	}
focal_method.class_method_signature: NetUtils.ipAddressToUrlString(InetAddress address)
focal_method.full_signature: public static String ipAddressToUrlString(InetAddress address)
focal_method.identifier: ipAddressToUrlString
focal_method.invocations: getHostAddress toAddrString
focal_method.modifiers: public static
focal_method.parameters: (InetAddress address)
focal_method.return: String
focal_method.signature: String ipAddressToUrlString(InetAddress address)