public class MuranoActionServiceImpl extends BaseOpenStackService implements MuranoActionService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
MuranoActionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String |
cast(String envId,
String actionId)
Send signal to run the action and return the taskId
|
String |
cast(String envId,
String actionId,
Map<String,Object> arguments) |
String |
cast(String envId,
String actionId,
String jsonString) |
ActionInfo |
find(String envId,
String actionName)
Tries to find action with specific name.
|
List<? extends ActionInfo> |
findAll(String envId,
String actionName)
Tries to find all actions with given name.
|
ActionInfo |
get(String envId,
String actionId)
List action in current environment by its ID.
|
protected List<? extends ActionInfo> |
getAllActions(String envId) |
ActionResult |
getResult(String envId,
String taskId)
Gets the result of running action.
|
List<? extends ActionInfo> |
list(String envId) |
List<? extends ActionInfo> |
list(String envId,
String serviceId)
List all actions in current environment
|
ActionResult |
run(String envId,
String actionId)
It is a simple wrapper for a pair:
cast() -> getResult()
Starts an action and wait for the result.
|
ActionResult |
run(String envId,
String actionId,
Map<String,Object> arguments) |
ActionResult |
run(String envId,
String actionId,
String jsonString) |
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends ActionInfo> list(String envId, String serviceId)
list
in interface MuranoActionService
envId
- the environment identifierserviceId
- the service identifierpublic List<? extends ActionInfo> list(String envId)
list
in interface MuranoActionService
public ActionInfo get(String envId, String actionId)
get
in interface MuranoActionService
envId
- the environment identifieractionId
- the action identifierpublic ActionInfo find(String envId, String actionName)
find
in interface MuranoActionService
envId
- the environment identifieractionName
- the name of actionpublic List<? extends ActionInfo> findAll(String envId, String actionName)
findAll
in interface MuranoActionService
envId
- the environment identifieractionName
- the name of actionpublic String cast(String envId, String actionId, String jsonString)
cast
in interface MuranoActionService
public String cast(String envId, String actionId, Map<String,Object> arguments)
cast
in interface MuranoActionService
public String cast(String envId, String actionId)
cast
in interface MuranoActionService
envId
- environment identifieractionId
- action identifierpublic ActionResult getResult(String envId, String taskId)
getResult
in interface MuranoActionService
envId
- environment identifiertaskId
- task idpublic ActionResult run(String envId, String actionId)
run
in interface MuranoActionService
envId
- environment identifieractionId
- action identifierpublic ActionResult run(String envId, String actionId, String jsonString)
run
in interface MuranoActionService
public ActionResult run(String envId, String actionId, Map<String,Object> arguments)
run
in interface MuranoActionService
protected List<? extends ActionInfo> getAllActions(String envId)
Copyright © 2017. All rights reserved.