Class HostAggregateServiceImpl

    • Constructor Detail

      • HostAggregateServiceImpl

        public HostAggregateServiceImpl()
    • Method Detail

      • list

        public List<? extends HostAggregate> list()
        List all aggregates (detailed) that the current tenant has access to
        Specified by:
        list in interface HostAggregateService
        Returns:
        list of all aggregates
      • update

        public HostAggregate update​(String hostAggregateId,
                                    String name,
                                    @Nullable
                                    String availabilityZone)
        Updates the name, and optionally the availability zone, for a specified aggregate.
        Specified by:
        update in interface HostAggregateService
        Parameters:
        hostAggregateId - the aggregate identifier
        Returns:
        HostAggregate
      • addHost

        public HostAggregate addHost​(String hostAggregateId,
                                     String host)
        Add host to aggregate
        Specified by:
        addHost in interface HostAggregateService
        Parameters:
        hostAggregateId - The ID associated with an aggregate.
        host - Host ID to add to an aggregate, which is a collection of multiple groups of hosts that share common resources like storage and network.
        Returns:
        HostAggregate
      • removeHost

        public HostAggregate removeHost​(String hostAggregateId,
                                        String host)
        remove host from aggregate
        Specified by:
        removeHost in interface HostAggregateService
        Parameters:
        hostAggregateId - The ID associated with an aggregate.
        host - Host ID to add to an aggregate, which is a collection of multiple groups of hosts that share common resources like storage and network.
        Returns:
        HostAggregate