Package com.aphyr.riemann.client

Examples of com.aphyr.riemann.client.SimpleUdpTransport


public class SimpleUdpClientTest {
  @Test
  public void sendEventsTest() throws IOException, InterruptedException, ServerError {
    final DatagramSocket serverSocket = new DatagramSocket();
    try {
      final RiemannClient client = new RiemannClient(new SimpleUdpTransport(serverSocket.getLocalPort()));
      try {
        client.connect();
        sendTestMessages(serverSocket, client);
      } finally {
        client.disconnect();
View Full Code Here


  @Test
  public void sendEventsOverReconnectionTest() throws IOException, InterruptedException, ServerError {
    DatagramSocket serverSocket = new DatagramSocket();
    final int port = serverSocket.getLocalPort();
    try {
      final RiemannClient client = new RiemannClient(new SimpleUdpTransport(serverSocket.getLocalPort()));
      try {
        client.connect();
        assertTrue(client.isConnected());
        sendTestMessages(serverSocket, client);
View Full Code Here

TOP

Related Classes of com.aphyr.riemann.client.SimpleUdpTransport

Copyright © 2018 www.massapicom. 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.