@Test public void testGetSeaCloudsInformation() throws Exception { assertNotNull(coreResource.getSeaCloudsInformation().getEntity()); }
@GET @Timed @Produces(MediaType.APPLICATION_JSON) @Path("about") @ApiOperation("Get SeaClouds Components endpoints") public Response getSeaCloudsInformation(){ JsonObject jsonResponse = new JsonObject(); JsonObject deployerObject = new JsonObject(); JsonObject monitorObject = new JsonObject(); JsonObject plannerObject = new JsonObject(); JsonObject slaObject = new JsonObject(); deployerObject.addProperty("url", deployerProxy.getEndpoint()); jsonResponse.add("deployer", deployerObject); plannerObject.addProperty("url", plannerProxy.getEndpoint()); jsonResponse.add("planner", plannerObject); slaObject.addProperty("url", slaProxy.getEndpoint()); jsonResponse.add("sla", slaObject); JsonObject grafanaObject = new JsonObject(); grafanaObject.addProperty("url", grafanaProxy.getEndpoint()); monitorObject.add("grafana", grafanaObject); jsonResponse.add("monitor", monitorObject); return Response.ok(jsonResponse.toString()).build(); }
CoreResource implements Resource { @GET @Timed @Produces(MediaType.APPLICATION_JSON) @Path("about") @ApiOperation("Get SeaClouds Components endpoints") public Response getSeaCloudsInformation(){ JsonObject jsonResponse = new JsonObject(); JsonObject deployerObject = new JsonObject(); JsonObject monitorObject = new JsonObject(); JsonObject plannerObject = new JsonObject(); JsonObject slaObject = new JsonObject(); deployerObject.addProperty("url", deployerProxy.getEndpoint()); jsonResponse.add("deployer", deployerObject); plannerObject.addProperty("url", plannerProxy.getEndpoint()); jsonResponse.add("planner", plannerObject); slaObject.addProperty("url", slaProxy.getEndpoint()); jsonResponse.add("sla", slaObject); JsonObject grafanaObject = new JsonObject(); grafanaObject.addProperty("url", grafanaProxy.getEndpoint()); monitorObject.add("grafana", grafanaObject); jsonResponse.add("monitor", monitorObject); return Response.ok(jsonResponse.toString()).build(); } }
CoreResource implements Resource { @GET @Timed @Produces(MediaType.APPLICATION_JSON) @Path("about") @ApiOperation("Get SeaClouds Components endpoints") public Response getSeaCloudsInformation(){ JsonObject jsonResponse = new JsonObject(); JsonObject deployerObject = new JsonObject(); JsonObject monitorObject = new JsonObject(); JsonObject plannerObject = new JsonObject(); JsonObject slaObject = new JsonObject(); deployerObject.addProperty("url", deployerProxy.getEndpoint()); jsonResponse.add("deployer", deployerObject); plannerObject.addProperty("url", plannerProxy.getEndpoint()); jsonResponse.add("planner", plannerObject); slaObject.addProperty("url", slaProxy.getEndpoint()); jsonResponse.add("sla", slaObject); JsonObject grafanaObject = new JsonObject(); grafanaObject.addProperty("url", grafanaProxy.getEndpoint()); monitorObject.add("grafana", grafanaObject); jsonResponse.add("monitor", monitorObject); return Response.ok(jsonResponse.toString()).build(); } CoreResource(DeployerProxy deployerProxy, GrafanaProxy grafanaProxy, PlannerProxy plannerProxy, SlaProxy slaProxy); }
CoreResource implements Resource { @GET @Timed @Produces(MediaType.APPLICATION_JSON) @Path("about") @ApiOperation("Get SeaClouds Components endpoints") public Response getSeaCloudsInformation(){ JsonObject jsonResponse = new JsonObject(); JsonObject deployerObject = new JsonObject(); JsonObject monitorObject = new JsonObject(); JsonObject plannerObject = new JsonObject(); JsonObject slaObject = new JsonObject(); deployerObject.addProperty("url", deployerProxy.getEndpoint()); jsonResponse.add("deployer", deployerObject); plannerObject.addProperty("url", plannerProxy.getEndpoint()); jsonResponse.add("planner", plannerObject); slaObject.addProperty("url", slaProxy.getEndpoint()); jsonResponse.add("sla", slaObject); JsonObject grafanaObject = new JsonObject(); grafanaObject.addProperty("url", grafanaProxy.getEndpoint()); monitorObject.add("grafana", grafanaObject); jsonResponse.add("monitor", monitorObject); return Response.ok(jsonResponse.toString()).build(); } CoreResource(DeployerProxy deployerProxy, GrafanaProxy grafanaProxy, PlannerProxy plannerProxy, SlaProxy slaProxy); @GET @Timed @Produces(MediaType.APPLICATION_JSON) @Path("about") @ApiOperation("Get SeaClouds Components endpoints") Response getSeaCloudsInformation(); }
CoreResource implements Resource { @GET @Timed @Produces(MediaType.APPLICATION_JSON) @Path("about") @ApiOperation("Get SeaClouds Components endpoints") public Response getSeaCloudsInformation(){ JsonObject jsonResponse = new JsonObject(); JsonObject deployerObject = new JsonObject(); JsonObject monitorObject = new JsonObject(); JsonObject plannerObject = new JsonObject(); JsonObject slaObject = new JsonObject(); deployerObject.addProperty("url", deployerProxy.getEndpoint()); jsonResponse.add("deployer", deployerObject); plannerObject.addProperty("url", plannerProxy.getEndpoint()); jsonResponse.add("planner", plannerObject); slaObject.addProperty("url", slaProxy.getEndpoint()); jsonResponse.add("sla", slaObject); JsonObject grafanaObject = new JsonObject(); grafanaObject.addProperty("url", grafanaProxy.getEndpoint()); monitorObject.add("grafana", grafanaObject); jsonResponse.add("monitor", monitorObject); return Response.ok(jsonResponse.toString()).build(); } CoreResource(DeployerProxy deployerProxy, GrafanaProxy grafanaProxy, PlannerProxy plannerProxy, SlaProxy slaProxy); @GET @Timed @Produces(MediaType.APPLICATION_JSON) @Path("about") @ApiOperation("Get SeaClouds Components endpoints") Response getSeaCloudsInformation();  }