@Override public void notify(Record notification) { Preconditions.checkNotNull(notification); Preconditions.checkNotNull(parent); Preconditions.checkNotNull(child); if (!ignoreNotifications) { child.notify(notification); } }
@Override public void notify(Record notification) { Preconditions.checkNotNull(notification); Preconditions.checkNotNull(parent); Preconditions.checkNotNull(child); if (!ignoreNotifications) { child.notify(notification); } }
@Override protected void doNotify(Record notification) { for (Command childRule : childRules) { if (!catchExceptions) { childRule.notify(notification); } else { try { childRule.notify(notification); } catch (RuntimeException e) { numExceptionsCaught.mark(); LOG.warn("tryRules command caught rule exception in doNotify(). Continuing to try other remaining rules", e); // continue and try the other remaining rules } } } super.doNotify(notification); }
@Override protected void doNotify(Record notification) { realChild.notify(notification); super.doNotify(notification); }
@Override protected void doNotify(Record notification) { for (Command childRule : childRules) { if (!catchExceptions) { childRule.notify(notification); } else { try { childRule.notify(notification); } catch (RuntimeException e) { numExceptionsCaught.mark(); LOG.warn("tryRules command caught rule exception in doNotify(). Continuing to try other remaining rules", e); // continue and try the other remaining rules } } } super.doNotify(notification); }
/** * Processes the given notification on the control plane of the subtree rooted at this command. */ protected void doNotify(Record notification) { getChild().notify(notification); }
/** * Processes the given notification on the control plane of the subtree rooted at this command. */ protected void doNotify(Record notification) { getChild().notify(notification); }
@Override protected void doNotify(Record notification) { realChild.notify(notification); super.doNotify(notification); }
@Override public void notify(Record notification) { child.notify(notification); }
@Override public void notify(Record notification) { child.notify(notification); }
/** * Notify a command that a lifecycle event has occurred. * @param command The {@link Command} to be notified. * @param event The {@link LifecycleEvent} to be passed down to the given command. */ private static void notify(Command command, LifecycleEvent event) { Record notification = new Record(); notification.put(LIFE_CYCLE, event); command.notify(notification); }
/** * Notify a command that a lifecycle event has occurred. * @param command The {@link Command} to be notified. * @param event The {@link LifecycleEvent} to be passed down to the given command. */ private static void notify(Command command, LifecycleEvent event) { Record notification = new Record(); notification.put(LIFE_CYCLE, event); command.notify(notification); }