Package org.jclouds.glesys.domain

Examples of org.jclouds.glesys.domain.ServerUptime$ConcreteBuilder


   private ServerStatus expectedServerStatus() {
      ResourceStatus cpu = ResourceStatus.builder().unit("cores").max(1.0).usage(0.0).build();
      ResourceStatus disk = ResourceStatus.builder().unit("MB").usage(0.0).max(5120).build();
      ResourceStatus memory = ResourceStatus.builder().unit("MB").usage(2.0).max(512).build();
      ServerUptime uptime = ServerUptime.builder().current(21).unit("seconds").build();
      return ServerStatus.builder().state(Server.State.RUNNING).uptime(uptime).
            cpu(cpu).disk(disk).memory(memory).build();
   }
View Full Code Here


   private ServerStatus expectedServerStatus() {
      ResourceStatus cpu = ResourceStatus.builder().unit("cores").max(1.0).usage(0.0).build();
      ResourceStatus disk = ResourceStatus.builder().unit("MB").usage(0.0).max(5120).build();
      ResourceStatus memory = ResourceStatus.builder().unit("MB").usage(2.0).max(512).build();
      ServerUptime uptime = ServerUptime.builder().current(21).unit("seconds").build();
      return ServerStatus.builder().state(Server.State.RUNNING).uptime(uptime).
            cpu(cpu).disk(disk).memory(memory).build();
   }
View Full Code Here

   private ServerStatus expectedServerStatus() {
      ResourceStatus cpu = ResourceStatus.builder().unit("cores").max(1.0).usage(0.0).build();
      ResourceStatus disk = ResourceStatus.builder().unit("MB").usage(0.0).max(5120).build();
      ResourceStatus memory = ResourceStatus.builder().unit("MB").usage(2.0).max(512).build();
      ServerUptime uptime = ServerUptime.builder().current(21).unit("seconds").build();
      return ServerStatus.builder().state(Server.State.RUNNING).uptime(uptime).
            cpu(cpu).disk(disk).memory(memory).build();
   }
View Full Code Here

   private ServerStatus expectedServerStatus() {
      ResourceStatus cpu = ResourceStatus.builder().unit("cores").max(1.0).usage(0.0).build();
      ResourceStatus disk = ResourceStatus.builder().unit("MB").usage(0.0).max(5120).build();
      ResourceStatus memory = ResourceStatus.builder().unit("MB").usage(2.0).max(512).build();
      ServerUptime uptime = ServerUptime.builder().current(21).unit("seconds").build();
      return ServerStatus.builder().state(Server.State.RUNNING).uptime(uptime).
            cpu(cpu).disk(disk).memory(memory).build();
   }
View Full Code Here

TOP

Related Classes of org.jclouds.glesys.domain.ServerUptime$ConcreteBuilder

Copyright © 2018 www.massapicom. 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.