Package com.aphyr.riemann.client

Examples of com.aphyr.riemann.client.RiemannClient.disconnect()


        assertEquals(true, client.sendEventsWithAck(e));
        assertEquals(e, Util.soleEvent(server.received.poll()));
      }
    } finally {
      if (client != null) {
        client.disconnect();
      }
      server.stop();
    }
  }
View Full Code Here


        final Msg m = server.received.poll();
        assertEquals("hi", m.getQuery().getString());
      }
    } finally {
      if (client != null) {
        client.disconnect();
      }
      server.stop();
    }
  }
}
View Full Code Here

      final RiemannClient client = new RiemannClient(new SimpleUdpTransport(serverSocket.getLocalPort()));
      try {
        client.connect();
        sendTestMessages(serverSocket, client);
      } finally {
        client.disconnect();
      }
    } finally {
      serverSocket.close();
    }
  }
View Full Code Here

        // Expect sent messages to be received again
        sendTestMessages(serverSocket, client);

      } finally {
        client.disconnect();
        assertFalse(client.isConnected());
      }
    } finally {
      serverSocket.close();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.