* the scheduler config
*/
public void loadScheduler(final ObjectNode schedulerConfig) {
if (schedulerConfig != null) {
if (agentId != null && schedulerConfig.has("state")) {
final StateConfig stateConfig = new StateConfig(
(ObjectNode) schedulerConfig.get("state"));
if (stateConfig.getId() == null) {
stateConfig.setId("scheduler_" + agentId);
}
}
scheduler = new SchedulerBuilder().withConfig(schedulerConfig)
.withHandle(receiver).build();