public class RestActionInvoker extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RestActionInvoker.JacksonObjectMapper
Utility class that configures a Jackson Object Mapper for REST serialization.
|
| Constructor and Description |
|---|
RestActionInvoker(String url)
Construct a REST action invoker.
|
| Modifier and Type | Method and Description |
|---|---|
ListActionsResp |
getActions()
Invoke the "get known actions" REST request.
|
ActionResult |
runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets)
Run a remote action via the action framework REST server.
|
ActionResult |
runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets, Object extra)
Run a remote action via the action framework REST server.
|
ActionResult |
runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets, Object extra, String oracleHome)
Run a remote action via the action framework REST server.
|
ActionResult |
runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets, Object extra, String oracleHome, ActionType actionType)
Run a remote action via the action framework REST server.
|
ActionResult |
runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets, String oracleHome)
Run a remote action via the action framework REST server.
|
public RestActionInvoker(String url) throws NoSuchAlgorithmException, KeyManagementException
url - the url of the REST server - http(s)://host:portNoSuchAlgorithmException - if SSL error encounteredKeyManagementException - if SSL error encounteredpublic ListActionsResp getActions() throws ActionInvocationException
ActionInvocationException - if response status is badpublic ActionResult runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets) throws ActionInvocationException
actionName - name of the action to runenv - the environment model to be passed to the actiontargets - the list of targets to be passed to the actionActionInvocationException - if response status is badpublic ActionResult runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets, Object extra) throws ActionInvocationException
actionName - name of the action to runenv - the environment model to be passed to the actiontargets - the list of targets to be passed to the actionextra - any extra parameters needed by the actionActionInvocationException - if response status is badpublic ActionResult runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets, String oracleHome) throws ActionInvocationException
actionName - name of the action to runenv - the environment model to be passed to the actiontargets - the list of targets to be passed to the actionoracleHome - oracle home containing the actionActionInvocationException - if response status is badpublic ActionResult runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets, Object extra, String oracleHome) throws ActionInvocationException
actionName - name of the action to runenv - the environment model to be passed to the actiontargets - the list of targets to be passed to the actionextra - extra parameter if necessaryoracleHome - oracle home containing the actionActionInvocationException - if response status is badpublic ActionResult runAction(String actionName, oracle.fmwplatform.envspec.model.EnvironmentModel env, List<oracle.fmwplatform.envspec.model.targets.ModelTarget> targets, Object extra, String oracleHome, ActionType actionType) throws ActionInvocationException
actionName - name of the action to runenv - the environment model to be passed to the actiontargets - the list of targets to be passed to the actionextra - extra parameter if necessaryoracleHome - oracle home containing the actionactionType - the action type to attempt to runActionInvocationException - if the response status is bad