test_class.file: metrics-influxdb/src/test/java/com/izettle/metrics/influxdb/InfluxDbUdpSenderTest.java
test_class.identifier: InfluxDbUdpSenderTest
test_case.body: @Test(expected = UnknownHostException.class)
      public void shouldThrowUnknownHostException() throws Exception {
          InfluxDbUdpSender influxDbUdpSender = new InfluxDbUdpSender(
              "testtestasdfg",
              10080,
              1000,
              "test",
              ""
          );
          influxDbUdpSender.writeData(new byte[0]);
      }
test_case.class_method_signature: InfluxDbUdpSenderTest.shouldThrowUnknownHostException()
test_case.full_signature: @Test(expected = UnknownHostException.class) public void shouldThrowUnknownHostException()
test_case.identifier: shouldThrowUnknownHostException
test_case.invocations: writeData
test_case.modifiers: @Test(expected = UnknownHostException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldThrowUnknownHostException()
focal_class.declarator: UDP_TIME_PRECISION = TimeUnit.NANOSECONDS
focal_class.modifier: private static final
focal_class.original_string: private static final TimeUnit UDP_TIME_PRECISION = TimeUnit.NANOSECONDS;
focal_class.type: TimeUnit
focal_class.var_name: UDP_TIME_PRECISION
focal_class.declarator: hostname
focal_class.modifier: private final
focal_class.original_string: private final String hostname;
focal_class.type: String
focal_class.var_name: hostname
focal_class.declarator: port
focal_class.modifier: private final
focal_class.original_string: private final int port;
focal_class.type: int
focal_class.var_name: port
focal_class.declarator: socketTimeout
focal_class.modifier: private final
focal_class.original_string: private final int socketTimeout;
focal_class.type: int
focal_class.var_name: socketTimeout
focal_class.declarator: udpSocket
focal_class.modifier: private
focal_class.original_string: private DatagramSocket udpSocket;
focal_class.type: DatagramSocket
focal_class.var_name: udpSocket
focal_class.file: metrics-influxdb/src/main/java/com/izettle/metrics/influxdb/InfluxDbUdpSender.java
focal_class.identifier: InfluxDbUdpSender
focal_class.class_method_signature: InfluxDbUdpSender.InfluxDbUdpSender(
          String hostname,
          int port,
          int socketTimeout,
          String database,
          String measurementPrefix)
focal_class.full_signature: public  InfluxDbUdpSender(
          String hostname,
          int port,
          int socketTimeout,
          String database,
          String measurementPrefix)
focal_class.identifier: InfluxDbUdpSender
focal_class.modifiers: public
focal_class.parameters: (
          String hostname,
          int port,
          int socketTimeout,
          String database,
          String measurementPrefix)
focal_class.signature:  InfluxDbUdpSender(
          String hostname,
          int port,
          int socketTimeout,
          String database,
          String measurementPrefix)
focal_class.class_method_signature: InfluxDbUdpSender.writeData(byte[] line)
focal_class.full_signature: @Override protected int writeData(byte[] line)
focal_class.identifier: writeData
focal_class.modifiers: @Override protected
focal_class.parameters: (byte[] line)
focal_class.return: int
focal_class.signature: int writeData(byte[] line)
focal_class.class_method_signature: InfluxDbUdpSender.createSocket()
focal_class.full_signature: private void createSocket()
focal_class.identifier: createSocket
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createSocket()
focal_class.superclass: extends InfluxDbBaseSender
focal_method.body: @Override
      protected int writeData(byte[] line) throws Exception {
          createSocket();
  
          udpSocket.send(new DatagramPacket(line, line.length, InetAddress.getByName(hostname), port));
  
          return 0;
      }
focal_method.class_method_signature: InfluxDbUdpSender.writeData(byte[] line)
focal_method.full_signature: @Override protected int writeData(byte[] line)
focal_method.identifier: writeData
focal_method.invocations: createSocket send getByName
focal_method.modifiers: @Override protected
focal_method.parameters: (byte[] line)
focal_method.return: int
focal_method.signature: int writeData(byte[] line)