Beispiel #1
0
 private ConfigUpdateResponse latestUpdateResponse(
     UpdateConfigFromUI command,
     UiBasedConfigUpdateCommand updateCommand,
     final NodeSubjectResolver nodeSubResolver,
     final CruiseConfig config,
     ConfigSaveState configSaveState) {
   Validatable node = null;
   Validatable subject = null;
   try {
     node = nodeSubResolver.getNode(command, config);
     subject = subjectFromNode(command, nodeSubResolver, node);
   } catch (Exception e) {
     // ignore, let node be null, will be handled by assert_loaded
   }
   return new ConfigUpdateResponse(config, node, subject, updateCommand, configSaveState);
 }
Beispiel #2
0
 private Validatable subjectFromNode(
     UpdateConfigFromUI command, NodeSubjectResolver updatedConfigResolver, Validatable node) {
   return node != null ? updatedConfigResolver.getSubject(command, node) : null;
 }