public class RestActionInvoker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestActionInvoker.JacksonObjectMapper |
Modifier and Type | Field and Description |
---|---|
javax.ws.rs.client.Client |
client |
static oracle.fmwplatform.util.logging.PlatformLogger |
logger |
static String |
ROOT_CTX |
String |
url |
Constructor and Description |
---|
RestActionInvoker(String url)
Construct a REST action invoker.
|
Modifier and Type | Method and Description |
---|---|
ListActionsResp |
getActions()
Invoke the get known action 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) |
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 String url
public javax.ws.rs.client.Client client
public static final String ROOT_CTX
public static final oracle.fmwplatform.util.logging.PlatformLogger logger
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