public class HostAggregateServiceImpl extends BaseComputeServices implements HostAggregateService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
HostAggregateServiceImpl() |
Modifier and Type | Method and Description |
---|---|
HostAggregate |
addHost(String hostAggregateId,
String host)
Add host to aggregate
|
HostAggregate |
create(String name,
String availabilityZone)
Create a hostAggregate
|
ActionResponse |
delete(String aggregateId)
Delete of the aggregate
|
NovaHostAggregate |
get(String aggregateId)
Get the specified HostAggregate by ID
|
List<? extends HostAggregate> |
list()
List all aggregates (detailed) that the current tenant has access to
|
List<? extends HostAggregate> |
list(Map<String,String> filteringParams)
Returns list of Aggregates filtered by parameters.
|
HostAggregate |
removeHost(String hostAggregateId,
String host)
remove host from aggregate
|
HostAggregate |
setMetadata(String hostAggregateId,
Map<String,String> metadata)
Sets metadata for an aggregate.
|
HostAggregate |
update(String hostAggregateId,
String name,
String availabilityZone)
Updates the name, and optionally the availability zone, for a specified aggregate.
|
invokeAction, invokeActionWithResponse
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends HostAggregate> list()
list
in interface HostAggregateService
public List<? extends HostAggregate> list(Map<String,String> filteringParams)
list
in interface HostAggregateService
filteringParams
- map (name, value) of filtering parameterspublic NovaHostAggregate get(String aggregateId)
get
in interface HostAggregateService
public ActionResponse delete(String aggregateId)
delete
in interface HostAggregateService
aggregateId
- the aggregate identifierpublic HostAggregate create(String name, String availabilityZone)
create
in interface HostAggregateService
public HostAggregate update(String hostAggregateId, String name, @Nullable String availabilityZone)
update
in interface HostAggregateService
hostAggregateId
- the aggregate identifierpublic HostAggregate setMetadata(String hostAggregateId, Map<String,String> metadata)
setMetadata
in interface HostAggregateService
hostAggregateId
- the aggregate identifierpublic HostAggregate addHost(String hostAggregateId, String host)
addHost
in interface HostAggregateService
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.public HostAggregate removeHost(String hostAggregateId, String host)
removeHost
in interface HostAggregateService
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.Copyright © 2017. All rights reserved.