public class ResourcesServiceImpl extends BaseHeatServices implements ResourcesService
HeatResource
objects. The
non-exhaustive list of methods is oriented along
http://developer.openstack.org/api-ref-orchestration-v1.htmlBaseOpenStackService.Invocation<R>
Constructor and Description |
---|
ResourcesServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getMetadata(String stackName,
String stackId,
String resourceName)
Gets the stack resource metadata
|
List<? extends Resource> |
list(String stackNameOrId)
Gets a list of currently existing
Resource s for a specified stack. |
List<? extends Resource> |
list(String stackNameOrId,
int depth)
Gets a list of currently existing
Resource s for a specified stack with filtern parameters. |
List<? extends Resource> |
list(String stackName,
String stackId)
Gets a list of currently existing
Resource s for a specified stack. |
ActionResponse |
markUnhealthy(String stackName,
String stackId,
String resourceName,
ResourceHealth resourceHealth)
Marks a resource unhealthy
|
Resource |
show(String stackName,
String stackId,
String resourceName)
Gets the detail of the specified resource
|
ActionResponse |
signal(String stackName,
String stackId,
String resourceName)
Signals a resource
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Resource> list(String stackName, String stackId)
ResourcesService
Resource
s for a specified stack.list
in interface ResourcesService
stackName
- The name of a stackstackId
- The unique identifier for a stackResource
spublic List<? extends Resource> list(String stackNameOrId)
ResourcesService
Resource
s for a specified stack.list
in interface ResourcesService
stackNameOrId
- Stack name or stack idResource
spublic List<? extends Resource> list(String stackNameOrId, int depth)
ResourcesService
Resource
s for a specified stack with filtern parameters.list
in interface ResourcesService
stackNameOrId
- Stack name or stack iddepth
- The recursion level for which resources will be listed.Resource
spublic Resource show(String stackName, String stackId, String resourceName)
ResourcesService
show
in interface ResourcesService
stackName
- The name of a stackstackId
- The unique identifier for a stackresourceName
- The name of a resourcepublic Map<String,Object> getMetadata(String stackName, String stackId, String resourceName)
ResourcesService
getMetadata
in interface ResourcesService
stackName
- The name of a stackstackId
- The unique identifier for a stackresourceName
- The name of a resourcepublic ActionResponse signal(String stackName, String stackId, String resourceName)
ResourcesService
signal
in interface ResourcesService
public ActionResponse markUnhealthy(String stackName, String stackId, String resourceName, ResourceHealth resourceHealth)
ResourcesService
markUnhealthy
in interface ResourcesService
Copyright © 2017. All rights reserved.