protected static final class ConstraintSolverStrategy.SearcherState extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
areAllExecsScheduled() |
boolean |
areSearchLimitsExceeded() |
void |
backtrack(Map<ExecutorDetails,String> execToComp,
RasNode node,
WorkerSlot workerSlot) |
ExecutorDetails |
currentExec() |
int |
getExecSize() |
int |
getStatesSearched() |
void |
incStatesSearched() |
void |
logNodeCompAssignments()
Use this method to log the current component assignments on the Node.
|
ConstraintSolverStrategy.SearcherState |
nextExecutor() |
void |
tryToSchedule(Map<ExecutorDetails,String> execToComp,
RasNode node,
WorkerSlot workerSlot)
Assign executor to worker and node.
|
public void incStatesSearched()
public int getStatesSearched()
public int getExecSize()
public boolean areSearchLimitsExceeded()
public ConstraintSolverStrategy.SearcherState nextExecutor()
public boolean areAllExecsScheduled()
public ExecutorDetails currentExec()
public void tryToSchedule(Map<ExecutorDetails,String> execToComp, RasNode node, WorkerSlot workerSlot)
Assign executor to worker and node. TODO: tryToSchedule is a misnomer, since it always schedules. Assignment validity check is done before the call to tryToSchedule().
execToComp
- Mapping from executor to component name.node
- RasNode on which to schedule.workerSlot
- WorkerSlot on which to schedule.public void backtrack(Map<ExecutorDetails,String> execToComp, RasNode node, WorkerSlot workerSlot)
public void logNodeCompAssignments()
Use this method to log the current component assignments on the Node. Useful for debugging and tests.
Copyright © 2020 The Apache Software Foundation. All rights reserved.