Examples of MachinesDto


Examples of com.abiquo.server.core.infrastructure.MachinesDto

   public VirtualMachine findVirtualMachine(final Predicate<VirtualMachine> filter) {
      return Iterables.getFirst(filter(listVirtualMachines(), filter), null);
   }

   public List<Machine> listReservedMachines() {
      MachinesDto machines = context.getApi().getEnterpriseApi().listReservedMachines(target);
      return wrap(context, Machine.class, machines.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

      VirtualMachinesWithNodeExtendedDto machines = context.getApi().getEnterpriseApi().listVirtualMachines(target);
      return wrap(context, VirtualMachine.class, machines.getCollection());
   }

   public Iterable<Machine> listReservedMachines() {
      MachinesDto machines = context.getApi().getEnterpriseApi().listReservedMachines(target);
      return wrap(context, Machine.class, machines.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

    *      > http://community.abiquo.com/display/ABI20/DatacenterResource#
    *      DatacenterResource- Retrievealistofremotemachineinformation</a>
    */
   public Iterable<Machine> discoverMultipleMachines(final String ipFrom, final String ipTo,
         final HypervisorType hypervisorType, final String user, final String password, final int port) {
      MachinesDto dto = context
            .getApi()
            .getInfrastructureApi()
            .discoverMultipleMachines(target, ipFrom, ipTo, hypervisorType, user, password,
                  MachineOptions.builder().port(port).build());

      // Credentials are not returned by the API
      for (MachineDto machine : dto.getCollection()) {
         machine.setUser(user);
         machine.setPassword(password);
      }

      return wrap(context, Machine.class, dto.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

    *      "http://community.abiquo.com/display/ABI20/MachineResource#MachineResource-RetrievealistofMachines"
    *      > http://community.abiquo.com/display/ABI20/MachineResource#
    *      MachineResource- RetrievealistofMachines</a>
    */
   public Iterable<Machine> listMachines() {
      MachinesDto machines = context.getApi().getInfrastructureApi().listMachines(target);
      return wrap(context, Machine.class, machines.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

    *      "http://community.abiquo.com/display/ABI20/MachineResource#MachineResource-RetrievealistofMachines"
    *      > http://community.abiquo.com/display/ABI20/MachineResource#
    *      MachineResource- RetrievealistofMachines</a>
    */
   public Iterable<Machine> listMachines() {
      MachinesDto machines = context.getApi().getInfrastructureApi().listMachines(target);
      return wrap(context, Machine.class, machines.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

    *      > http://community.abiquo.com/display/ABI20/DatacenterResource#
    *      DatacenterResource- Retrievealistofremotemachineinformation</a>
    */
   public Iterable<Machine> discoverMultipleMachines(final String ipFrom, final String ipTo,
         final HypervisorType hypervisorType, final String user, final String password, final int port) {
      MachinesDto dto = context
            .getApi()
            .getInfrastructureApi()
            .discoverMultipleMachines(target, ipFrom, ipTo, hypervisorType, user, password,
                  MachineOptions.builder().port(port).build());

      // Credentials are not returned by the API
      for (MachineDto machine : dto.getCollection()) {
         machine.setUser(user);
         machine.setPassword(password);
      }

      return wrap(context, Machine.class, dto.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

      VirtualMachinesWithNodeExtendedDto machines = context.getApi().getEnterpriseApi().listVirtualMachines(target);
      return wrap(context, VirtualMachine.class, machines.getCollection());
   }

   public Iterable<Machine> listReservedMachines() {
      MachinesDto machines = context.getApi().getEnterpriseApi().listReservedMachines(target);
      return wrap(context, Machine.class, machines.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

   public VirtualMachine findVirtualMachine(final Predicate<VirtualMachine> filter) {
      return Iterables.getFirst(filter(listVirtualMachines(), filter), null);
   }

   public List<Machine> listReservedMachines() {
      MachinesDto machines = context.getApi().getEnterpriseApi().listReservedMachines(target);
      return wrap(context, Machine.class, machines.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

    *      > http://community.abiquo.com/display/ABI20/DatacenterResource#
    *      DatacenterResource- Retrievealistofremotemachineinformation</a>
    */
   public List<Machine> discoverMultipleMachines(final String ipFrom, final String ipTo,
         final HypervisorType hypervisorType, final String user, final String password, final int port) {
      MachinesDto dto = context
            .getApi()
            .getInfrastructureApi()
            .discoverMultipleMachines(target, ipFrom, ipTo, hypervisorType, user, password,
                  MachineOptions.builder().port(port).build());

      // Credentials are not returned by the API
      for (MachineDto machine : dto.getCollection()) {
         machine.setUser(user);
         machine.setPassword(password);
      }

      return wrap(context, Machine.class, dto.getCollection());
   }
View Full Code Here

Examples of com.abiquo.server.core.infrastructure.MachinesDto

    *      "http://community.abiquo.com/display/ABI20/MachineResource#MachineResource-RetrievealistofMachines"
    *      > http://community.abiquo.com/display/ABI20/MachineResource#
    *      MachineResource- RetrievealistofMachines</a>
    */
   public List<Machine> listMachines() {
      MachinesDto machines = context.getApi().getInfrastructureApi().listMachines(target);
      return wrap(context, Machine.class, machines.getCollection());
   }
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.