Class MuranoActionServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.murano.v1.internal.MuranoActionServiceImpl
-
- All Implemented Interfaces:
MuranoActionService,RestService
public class MuranoActionServiceImpl extends BaseOpenStackService implements MuranoActionService
- Author:
- Nikolay Mahotkin.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description MuranoActionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcast(String envId, String actionId)Send signal to run the action and return the taskIdStringcast(String envId, String actionId, String jsonString)Stringcast(String envId, String actionId, Map<String,Object> arguments)ActionInfofind(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.ActionInfoget(String envId, String actionId)List action in current environment by its ID.protected List<? extends ActionInfo>getAllActions(String envId)ActionResultgetResult(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 environmentActionResultrun(String envId, String actionId)It is a simple wrapper for a pair: cast() -> getResult() Starts an action and wait for the result.ActionResultrun(String envId, String actionId, String jsonString)ActionResultrun(String envId, String actionId, Map<String,Object> arguments)-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends ActionInfo> list(String envId, String serviceId)
List all actions in current environment- Specified by:
listin interfaceMuranoActionService- Parameters:
envId- the environment identifierserviceId- the service identifier- Returns:
- list of actions or null.
-
list
public List<? extends ActionInfo> list(String envId)
- Specified by:
listin interfaceMuranoActionService
-
get
public ActionInfo get(String envId, String actionId)
List action in current environment by its ID.- Specified by:
getin interfaceMuranoActionService- Parameters:
envId- the environment identifieractionId- the action identifier- Returns:
- Action instance or null
-
find
public ActionInfo find(String envId, String actionName)
Tries to find action with specific name. Returns the first occurrence of given action name.- Specified by:
findin interfaceMuranoActionService- Parameters:
envId- the environment identifieractionName- the name of action- Returns:
- Action instance
-
findAll
public List<? extends ActionInfo> findAll(String envId, String actionName)
Tries to find all actions with given name.- Specified by:
findAllin interfaceMuranoActionService- Parameters:
envId- the environment identifieractionName- the name of action- Returns:
- Action list or empty list in case of not found
-
cast
public String cast(String envId, String actionId, String jsonString)
- Specified by:
castin interfaceMuranoActionService
-
cast
public String cast(String envId, String actionId, Map<String,Object> arguments)
- Specified by:
castin interfaceMuranoActionService
-
cast
public String cast(String envId, String actionId)
Send signal to run the action and return the taskId- Specified by:
castin interfaceMuranoActionService- Parameters:
envId- environment identifieractionId- action identifier- Returns:
- String with taskId
-
getResult
public ActionResult getResult(String envId, String taskId)
Gets the result of running action.- Specified by:
getResultin interfaceMuranoActionService- Parameters:
envId- environment identifiertaskId- task id- Returns:
- Action result instance
-
run
public ActionResult run(String envId, String actionId)
It is a simple wrapper for a pair: cast() -> getResult() Starts an action and wait for the result.- Specified by:
runin interfaceMuranoActionService- Parameters:
envId- environment identifieractionId- action identifier- Returns:
- Action result instance
-
run
public ActionResult run(String envId, String actionId, String jsonString)
- Specified by:
runin interfaceMuranoActionService
-
run
public ActionResult run(String envId, String actionId, Map<String,Object> arguments)
- Specified by:
runin interfaceMuranoActionService
-
getAllActions
protected List<? extends ActionInfo> getAllActions(String envId)
-
-