Package org.kie.server.client.impl
Class ScenarioSimulationServicesClientImpl
- java.lang.Object
-
- org.kie.server.client.impl.AbstractKieServicesClientImpl
-
- org.kie.server.client.impl.ScenarioSimulationServicesClientImpl
-
- All Implemented Interfaces:
ScenarioSimulationServicesClient
public class ScenarioSimulationServicesClientImpl extends AbstractKieServicesClientImpl implements ScenarioSimulationServicesClient
-
-
Field Summary
-
Fields inherited from class org.kie.server.client.impl.AbstractKieServicesClientImpl
BYPASS_AUTH_USER, classLoader, config, loadBalancer, marshaller, owner
-
-
Constructor Summary
Constructors Constructor Description ScenarioSimulationServicesClientImpl(KieServicesConfiguration config)
ScenarioSimulationServicesClientImpl(KieServicesConfiguration config, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.server.api.model.ServiceResponse<org.kie.server.api.model.scenariosimulation.ScenarioSimulationResult>
executeScenario(String containerId, String content)
Execute given test scenario against specified containerIdorg.kie.server.api.model.ServiceResponse<org.kie.server.api.model.scenariosimulation.ScenarioSimulationResult>
executeScenarioByPath(String containerId, String localPath)
Execute given test scenario against specified containerId-
Methods inherited from class org.kie.server.client.impl.AbstractKieServicesClientImpl
buildQueryString, checkResultType, close, createExceptionForUnexpectedResponseCode, deserialize, encode, executeJmsCommand, executeJmsCommand, executeJmsCommand, executeJmsCommand, getAdditionalParams, getConversationId, getHeaders, getLoadBalancer, getMediaType, getMessage, getPagingQueryString, getResponseHandler, getSortingQueryString, getUserAndAdditionalParam, getUserAndAdditionalParams, getUserAndPagingQueryString, getUserQueryStr, getUserQueryStr, initializeURI, invoke, makeBackwardCompatibleHttpPostRequestAndCreateServiceResponse, makeBackwardCompatibleHttpPostRequestAndCreateServiceResponse, makeBackwardCompatibleHttpPostRequestAndCreateServiceResponse, makeHttpDeleteRequestAndCreateCustomResponse, makeHttpDeleteRequestAndCreateServiceResponse, makeHttpGetRequestAndCreateCustomResponse, makeHttpGetRequestAndCreateCustomResponseWithHandleNotFound, makeHttpGetRequestAndCreateRawResponse, makeHttpGetRequestAndCreateRawResponse, makeHttpGetRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateCustomResponse, makeHttpPostRequestAndCreateCustomResponse, makeHttpPostRequestAndCreateCustomResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPutRequestAndCreateCustomResponse, makeHttpPutRequestAndCreateCustomResponse, makeHttpPutRequestAndCreateServiceResponse, makeHttpPutRequestAndCreateServiceResponse, newRequest, safeList, safeMap, sendTaskOperation, sendTaskOperation, serialize, setOwner, setResponseHandler, shouldReturnWithNullResponse, throwExceptionOnFailure
-
-
-
-
Constructor Detail
-
ScenarioSimulationServicesClientImpl
public ScenarioSimulationServicesClientImpl(KieServicesConfiguration config)
-
ScenarioSimulationServicesClientImpl
public ScenarioSimulationServicesClientImpl(KieServicesConfiguration config, ClassLoader classLoader)
-
-
Method Detail
-
executeScenarioByPath
public org.kie.server.api.model.ServiceResponse<org.kie.server.api.model.scenariosimulation.ScenarioSimulationResult> executeScenarioByPath(String containerId, String localPath) throws IOException
Description copied from interface:ScenarioSimulationServicesClient
Execute given test scenario against specified containerId- Specified by:
executeScenarioByPath
in interfaceScenarioSimulationServicesClient
- Parameters:
containerId
- id of container to be used to execute the scenariolocalPath
- to Test Scenario file (scesim) to be executed. It must be a validPaths.get(String, String...)
parameter- Returns:
- result of Test Scenario execution (jUnit like)
- Throws:
IOException
-
executeScenario
public org.kie.server.api.model.ServiceResponse<org.kie.server.api.model.scenariosimulation.ScenarioSimulationResult> executeScenario(String containerId, String content)
Description copied from interface:ScenarioSimulationServicesClient
Execute given test scenario against specified containerId- Specified by:
executeScenario
in interfaceScenarioSimulationServicesClient
- Parameters:
containerId
- id of container to be used to execute the scenariocontent
- of Test Scenario file (scesim) to be executed. This string should contain the XML of the scesim file- Returns:
- result of Test Scenario execution (jUnit like)
-
-