@ApplicationScope @Component public class WannabeSolverManager extends Object implements org.springframework.boot.ApplicationRunner
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
WannabeSolverManager(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor taskExecutor,
RosterService rosterService) |
| Modifier and Type | Method and Description |
|---|---|
Roster |
getRoster(Integer tenantId) |
org.optaplanner.core.impl.score.director.ScoreDirector<Roster> |
getScoreDirector() |
SolverStatus |
getSolverStatus(Integer tenantId) |
CountDownLatch |
replan(Integer tenantId) |
void |
run(org.springframework.boot.ApplicationArguments args) |
void |
setUpSolverFactory() |
CountDownLatch |
solve(Integer tenantId) |
CountDownLatch |
solveRoster(Integer tenantId,
Roster roster) |
void |
terminate(Integer tenantId) |
public WannabeSolverManager(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor taskExecutor,
RosterService rosterService)
public void run(org.springframework.boot.ApplicationArguments args)
run in interface org.springframework.boot.ApplicationRunnerpublic void setUpSolverFactory()
public void terminate(Integer tenantId)
public CountDownLatch solve(Integer tenantId)
public CountDownLatch replan(Integer tenantId)
public CountDownLatch solveRoster(Integer tenantId, Roster roster)
public SolverStatus getSolverStatus(Integer tenantId)
public org.optaplanner.core.impl.score.director.ScoreDirector<Roster> getScoreDirector()
Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.