class ClusterRestApi {

  @GET
  @Path("/" + RestConstants.ADDRESS)
  @SubmarineApi
  public Response getClusterAddress() {
    SubmarineConfiguration sConf = SubmarineConfiguration.getInstance();
    String clusterAddr = sConf.getClusterAddress();
    String[] arrAddr = clusterAddr.split(",");
    List<String> listAddr = Arrays.asList(arrAddr);

    return new JsonResponse.Builder<List<String>>(Response.Status.OK)
        .success(true).result(listAddr).build();
  }

}