public class StackServiceImpl extends BaseHeatServices implements StackService
HeatStack
objects. The
non-exhaustive list of methods is oriented along
http://developer.openstack.org/api-ref-orchestration-v1.html#stacksBaseOpenStackService.Invocation<R>
Constructor and Description |
---|
StackServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Stack |
create(StackCreate newStack)
|
Stack |
create(String name,
String template,
Map<String,String> parameters,
boolean disableRollback,
Long timeoutMins)
POST /v1/{tenant_id}/stacks Creates a new StackCreate Object and returns a new Stack as sent from the
server. |
ActionResponse |
delete(String stackName,
String stackId)
Deletes the specified
Stack from the server. |
Stack |
getDetails(String stackName,
String stackId)
returns details of a
Stack . |
Stack |
getStackByName(String stackName)
returns details of a
Stack . |
List<? extends Stack> |
list()
Gets a list of currently existing
Stack s. |
List<? extends Stack> |
list(Map<String,String> filteringParams)
Gets a list of currently existing
Stack objects, filtered by parameters. |
ActionResponse |
update(String stackName,
String stackId,
StackUpdate stackUpdate)
Updates an existing Stack
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public Stack create(StackCreate newStack)
StackService
create
in interface StackService
newStack
- StackCreate
object out of which stack is to be createdStack
as returned from the serverpublic Stack create(String name, String template, Map<String,String> parameters, boolean disableRollback, Long timeoutMins)
StackService
POST /v1/{tenant_id}/stacks
StackCreate
Object and returns a new Stack
as sent from the
server.create
in interface StackService
name
- Name of Stacktemplate
- Template in Json-Format or YAML formatparameters
- Map of parametersdisableRollback
- boolean to enable or disable rollbacktimeoutMins
- timeout in minutesStack
as returned from the serverpublic List<? extends Stack> list()
StackService
Stack
s.list
in interface StackService
Stack
spublic List<? extends Stack> list(Map<String,String> filteringParams)
StackService
Stack
objects, filtered by parameters.list
in interface StackService
filteringParams
- The parameters used to filter the stacks returned.Stack
objects.public ActionResponse delete(String stackName, String stackId)
StackService
Stack
from the server.delete
in interface StackService
stackName
- Name of Stack
stackId
- Id of Stack
public Stack getDetails(String stackName, String stackId)
StackService
Stack
.getDetails
in interface StackService
stackName
- Name of Stack
stackId
- Id of Stack
public ActionResponse update(String stackName, String stackId, StackUpdate stackUpdate)
StackService
update
in interface StackService
stackName
- the stack namestackId
- the specific stack identifierstackUpdate
- the stack update optionspublic Stack getStackByName(String stackName)
StackService
Stack
.getStackByName
in interface StackService
Stack
Copyright © 2017. All rights reserved.