Package com.elastisys.scale.cloudadapers.api.types

Examples of com.elastisys.scale.cloudadapers.api.types.MachinePool.toJson()


  @Produces(MediaType.APPLICATION_JSON)
  public Response getPool() {
    log.info("GET /pool");
    try {
      MachinePool machinePool = this.cloudAdapter.getMachinePool();
      return Response.ok(machinePool.toJson()).build();
    } catch (Exception e) {
      String message = "failure to process pool get request: "
          + e.getMessage();
      log.error(message, e);
      return Response.status(Status.INTERNAL_SERVER_ERROR)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.