use of org.btrplace.scheduler.choco.transition.NodeTransitionBuilder in project scheduler by btrplace.
the class DefaultReconfigurationProblem method makeNodeTransitions.
private void makeNodeTransitions() {
Mapping m = model.getMapping();
nodeActions = new ArrayList<>(nodes.size());
for (Node nId : nodes) {
NodeState state = m.getState(nId);
NodeTransitionBuilder b = amFactory.getBuilder(state);
if (b == null) {
throw new LifeCycleViolationException(model, nId, state, EnumSet.of(NodeState.OFFLINE, NodeState.ONLINE));
}
nodeActions.add(b.build(this, nId));
}
}
Aggregations