@ApplicationScope @Component public class WannabeSolverManager extends Object implements org.springframework.boot.ApplicationRunner
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
static String |
SOLVER_CONFIG |
| 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() |
void |
run(org.springframework.boot.ApplicationArguments args) |
void |
setUpSolverFactory() |
CountDownLatch |
solve(Integer tenantId) |
void |
terminate(Integer tenantId) |
public static final String SOLVER_CONFIG
protected final transient org.slf4j.Logger logger
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 org.optaplanner.core.impl.score.director.ScoreDirector<Roster> getScoreDirector()
Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.