Пример #1
0
  /**
   * Get service Sanity Check.
   *
   * @return A HTTP status
   */
  @GET
  @Path("")
  @Produces({"application/json"})
  public Status checkSanityCheck() {
    try {
      List<SaikuConnection> result = olapDiscoverService.getAllConnections();
      if (result == null) return Status.INTERNAL_SERVER_ERROR;

      return Status.OK;
    } catch (SaikuServiceException e) {
      log.error(this.getClass().getName(), e);
      return Status.INTERNAL_SERVER_ERROR;
    }
  }