Package org.kie.server.client.impl
Class SolverServicesClientImpl
- java.lang.Object
-
- org.kie.server.client.impl.AbstractKieServicesClientImpl
-
- org.kie.server.client.impl.SolverServicesClientImpl
-
- All Implemented Interfaces:
SolverServicesClient
public class SolverServicesClientImpl extends AbstractKieServicesClientImpl implements SolverServicesClient
-
-
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 SolverServicesClientImpl(KieServicesConfiguration config)SolverServicesClientImpl(KieServicesConfiguration config, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProblemFactChange(String containerId, String solverId, org.optaplanner.core.impl.solver.ProblemFactChange problemFactChange)voidaddProblemFactChanges(String containerId, String solverId, List<org.optaplanner.core.impl.solver.ProblemFactChange> problemFactChanges)org.kie.server.api.model.instance.SolverInstancecreateSolver(String containerId, String solverId, String configFile)voiddisposeSolver(String containerId, String solverId)org.kie.server.api.model.instance.SolverInstancegetSolver(String containerId, String solverId)List<org.kie.server.api.model.instance.SolverInstance>getSolvers(String containerId)org.kie.server.api.model.instance.SolverInstancegetSolverWithBestSolution(String containerId, String solverId)BooleanisEveryProblemFactChangeProcessed(String containerId, String solverId)voidsolvePlanningProblem(String containerId, String solverId, Object planningProblem)voidterminateSolverEarly(String containerId, String solverId)protected voidthrowExceptionOnFailure(org.kie.server.api.model.ServiceResponse<?> serviceResponse)-
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, serialize, setOwner, setResponseHandler, shouldReturnWithNullResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.server.client.SolverServicesClient
setResponseHandler
-
-
-
-
Constructor Detail
-
SolverServicesClientImpl
public SolverServicesClientImpl(KieServicesConfiguration config)
-
SolverServicesClientImpl
public SolverServicesClientImpl(KieServicesConfiguration config, ClassLoader classLoader)
-
-
Method Detail
-
getSolvers
public List<org.kie.server.api.model.instance.SolverInstance> getSolvers(String containerId)
- Specified by:
getSolversin interfaceSolverServicesClient
-
createSolver
public org.kie.server.api.model.instance.SolverInstance createSolver(String containerId, String solverId, String configFile)
- Specified by:
createSolverin interfaceSolverServicesClient
-
getSolver
public org.kie.server.api.model.instance.SolverInstance getSolver(String containerId, String solverId)
- Specified by:
getSolverin interfaceSolverServicesClient
-
getSolverWithBestSolution
public org.kie.server.api.model.instance.SolverInstance getSolverWithBestSolution(String containerId, String solverId)
- Specified by:
getSolverWithBestSolutionin interfaceSolverServicesClient
-
solvePlanningProblem
public void solvePlanningProblem(String containerId, String solverId, Object planningProblem)
- Specified by:
solvePlanningProblemin interfaceSolverServicesClient
-
terminateSolverEarly
public void terminateSolverEarly(String containerId, String solverId)
- Specified by:
terminateSolverEarlyin interfaceSolverServicesClient
-
addProblemFactChange
public void addProblemFactChange(String containerId, String solverId, org.optaplanner.core.impl.solver.ProblemFactChange problemFactChange)
- Specified by:
addProblemFactChangein interfaceSolverServicesClient
-
addProblemFactChanges
public void addProblemFactChanges(String containerId, String solverId, List<org.optaplanner.core.impl.solver.ProblemFactChange> problemFactChanges)
- Specified by:
addProblemFactChangesin interfaceSolverServicesClient
-
isEveryProblemFactChangeProcessed
public Boolean isEveryProblemFactChangeProcessed(String containerId, String solverId)
- Specified by:
isEveryProblemFactChangeProcessedin interfaceSolverServicesClient
-
disposeSolver
public void disposeSolver(String containerId, String solverId)
- Specified by:
disposeSolverin interfaceSolverServicesClient
-
throwExceptionOnFailure
protected void throwExceptionOnFailure(org.kie.server.api.model.ServiceResponse<?> serviceResponse)
- Overrides:
throwExceptionOnFailurein classAbstractKieServicesClientImpl
-
-