test_class.file: flink-runtime/src/test/java/org/apache/flink/runtime/instance/InstanceConnectionInfoTest.java
test_class.identifier: InstanceConnectionInfoTest
test_case.body: @Test
  	public void testGetHostname0() {
  		try {
  			InetAddress address = mock(InetAddress.class);
  			when(address.getCanonicalHostName()).thenReturn("worker2.cluster.mycompany.com");
  			when(address.getHostName()).thenReturn("worker2.cluster.mycompany.com");
  			when(address.getHostAddress()).thenReturn("127.0.0.1");
  
  			final InstanceConnectionInfo info = new InstanceConnectionInfo(address, 19871);
  			Assert.assertEquals("worker2", info.getHostname());
  		}
  		catch (Exception e) {
  			e.printStackTrace();
  			fail(e.getMessage());
  		}
  	}
test_case.class_method_signature: InstanceConnectionInfoTest.testGetHostname0()
test_case.full_signature: @Test public void testGetHostname0()
test_case.identifier: testGetHostname0
test_case.invocations: mock thenReturn when getCanonicalHostName thenReturn when getHostName thenReturn when getHostAddress assertEquals getHostname printStackTrace fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetHostname0()
focal_class.declarator: serialVersionUID = -8254407801276350716L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -8254407801276350716L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: LOG = LoggerFactory.getLogger(InstanceConnectionInfo.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(InstanceConnectionInfo.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: inetAddress
focal_class.modifier: private
focal_class.original_string: private InetAddress inetAddress;
focal_class.type: InetAddress
focal_class.var_name: inetAddress
focal_class.declarator: dataPort
focal_class.modifier: private
focal_class.original_string: private int dataPort;
focal_class.type: int
focal_class.var_name: dataPort
focal_class.declarator: fqdnHostName
focal_class.modifier: private
focal_class.original_string: private String fqdnHostName;
focal_class.type: String
focal_class.var_name: fqdnHostName
focal_class.declarator: hostName
focal_class.modifier: private
focal_class.original_string: private String hostName;
focal_class.type: String
focal_class.var_name: hostName
focal_class.file: flink-runtime/src/main/java/org/apache/flink/runtime/instance/InstanceConnectionInfo.java
focal_class.identifier: InstanceConnectionInfo
focal_class.interfaces: implements IOReadableWritable, Comparable<InstanceConnectionInfo>, java.io.Serializable
focal_class.class_method_signature: InstanceConnectionInfo.InstanceConnectionInfo(InetAddress inetAddress, int dataPort)
focal_class.full_signature: public  InstanceConnectionInfo(InetAddress inetAddress, int dataPort)
focal_class.identifier: InstanceConnectionInfo
focal_class.modifiers: public
focal_class.parameters: (InetAddress inetAddress, int dataPort)
focal_class.signature:  InstanceConnectionInfo(InetAddress inetAddress, int dataPort)
focal_class.class_method_signature: InstanceConnectionInfo.InstanceConnectionInfo()
focal_class.full_signature: public  InstanceConnectionInfo()
focal_class.identifier: InstanceConnectionInfo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  InstanceConnectionInfo()
focal_class.class_method_signature: InstanceConnectionInfo.dataPort()
focal_class.full_signature: public int dataPort()
focal_class.identifier: dataPort
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int dataPort()
focal_class.class_method_signature: InstanceConnectionInfo.address()
focal_class.full_signature: public InetAddress address()
focal_class.identifier: address
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: InetAddress
focal_class.signature: InetAddress address()
focal_class.class_method_signature: InstanceConnectionInfo.getFQDNHostname()
focal_class.full_signature: public String getFQDNHostname()
focal_class.identifier: getFQDNHostname
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFQDNHostname()
focal_class.class_method_signature: InstanceConnectionInfo.getHostname()
focal_class.full_signature: public String getHostname()
focal_class.identifier: getHostname
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHostname()
focal_class.class_method_signature: InstanceConnectionInfo.getInetAdress()
focal_class.full_signature: public String getInetAdress()
focal_class.identifier: getInetAdress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getInetAdress()
focal_class.class_method_signature: InstanceConnectionInfo.read(DataInputView in)
focal_class.full_signature: @Override public void read(DataInputView in)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (DataInputView in)
focal_class.return: void
focal_class.signature: void read(DataInputView in)
focal_class.class_method_signature: InstanceConnectionInfo.write(final DataOutputView out)
focal_class.full_signature: @Override public void write(final DataOutputView out)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (final DataOutputView out)
focal_class.return: void
focal_class.signature: void write(final DataOutputView out)
focal_class.class_method_signature: InstanceConnectionInfo.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: InstanceConnectionInfo.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: InstanceConnectionInfo.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: InstanceConnectionInfo.compareTo(InstanceConnectionInfo o)
focal_class.full_signature: @Override public int compareTo(InstanceConnectionInfo o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (InstanceConnectionInfo o)
focal_class.return: int
focal_class.signature: int compareTo(InstanceConnectionInfo o)
focal_method.body: public String getHostname() {
  		return hostName;
  	}
focal_method.class_method_signature: InstanceConnectionInfo.getHostname()
focal_method.full_signature: public String getHostname()
focal_method.identifier: getHostname
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getHostname()