@Test public void testPing() throws Exception { assertThat(client.ping()).isTrue(); }
public boolean ping() { final URI uri = UriBuilder.fromUri(rootUri).path("/ping").build(); LOGGER.debug("GET {}", uri); final String response = client.target(uri).request().get(String.class); return "pong".equals(response); }
NotificationClient implements Closeable { public boolean ping() { final URI uri = UriBuilder.fromUri(rootUri).path("/ping").build(); LOGGER.debug("GET {}", uri); final String response = client.target(uri).request().get(String.class); return "pong".equals(response); } }
NotificationClient implements Closeable { public boolean ping() { final URI uri = UriBuilder.fromUri(rootUri).path("/ping").build(); LOGGER.debug("GET {}", uri); final String response = client.target(uri).request().get(String.class); return "pong".equals(response); } NotificationClient(final MetricRegistry registry, final Client client, final URI uri); }
NotificationClient implements Closeable { public boolean ping() { final URI uri = UriBuilder.fromUri(rootUri).path("/ping").build(); LOGGER.debug("GET {}", uri); final String response = client.target(uri).request().get(String.class); return "pong".equals(response); } NotificationClient(final MetricRegistry registry, final Client client, final URI uri); Optional<SortedSet<Notification>> fetch(final String username); Optional<Notification> store(final String username, final Notification notification); void delete(final String username, final Collection<String> ids); void delete(final String username); boolean ping(); String version(); @Override void close(); }
NotificationClient implements Closeable { public boolean ping() { final URI uri = UriBuilder.fromUri(rootUri).path("/ping").build(); LOGGER.debug("GET {}", uri); final String response = client.target(uri).request().get(String.class); return "pong".equals(response); } NotificationClient(final MetricRegistry registry, final Client client, final URI uri); Optional<SortedSet<Notification>> fetch(final String username); Optional<Notification> store(final String username, final Notification notification); void delete(final String username, final Collection<String> ids); void delete(final String username); boolean ping(); String version(); @Override void close();  }