/** * {@inheritDoc} * * Overrides the {@code update} method to additionally update this input's * path if the {@code RestrictToHost} property is changed. */ @Override public void update(Map<String, Object> args) { if (args.containsKey("restrictToHost")) { throw new UnsupportedOperationException( "You cannot update the restrictToHost parameter " + "on an existing input with the SDK."); } else { super.update(args); } } }
/** * {@inheritDoc} */ @Override public void update() { // If not present in the update keys, add required attribute as long // as one pre-existing update pair exists if (toUpdate.size() > 0 && !toUpdate.containsKey("monitorSubtree")) { setCacheValue( "monitorSubtree", getMonitorSubtree()); } super.update(); } }
/** * {@inheritDoc} */ @Override public void update() { // If not present in the update keys, add required attribute as long // as one pre-existing update pair exists if (toUpdate.size() > 0 && !toUpdate.containsKey("lookup_host")) { setCacheValue("lookup_host", getLookupHost()); } super.update(); } }
/** * {@inheritDoc} */ @Override public void update(Map<String, Object> args) { // Add required arguments if not already present if (!args.containsKey("monitorSubtree")) { args = Args.create(args).add( "monitorSubtree", getMonitorSubtree()); } super.update(args); }
/** * {@inheritDoc} */ @Override public void update(Map<String, Object> args) { // Add required arguments if not already present if (!args.containsKey("lookup_host")) { args = Args.create(args).add("lookup_host", getLookupHost()); } super.update(args); }
/** * {@inheritDoc} */ @Override public void update() { // If not present in the update keys, add required attributes as long // as one pre-existing update pair exists if (toUpdate.size() > 0 && !toUpdate.containsKey("classes")) { setCacheValue("classes", getClasses()); } if (toUpdate.size() > 0 && !toUpdate.containsKey("interval")) { setCacheValue("interval", getInterval()); } if (toUpdate.size() > 0 && !toUpdate.containsKey("lookup_host")) { setCacheValue("lookup_host", getLookupHost()); } super.update(); } }
/** * {@inheritDoc} */ @Override public void update() { // If not present in the update keys, add required attributes as long // as one pre-existing update pair exists if (toUpdate.size() > 0 && !toUpdate.containsKey("baseline")) { setCacheValue("baseline", getBaseline()); } if (toUpdate.size() > 0 && !toUpdate.containsKey("hive")) { setCacheValue("hive", getHive()); } if (toUpdate.size() > 0 && !toUpdate.containsKey("proc")) { setCacheValue("proc", getProc()); } if (toUpdate.size() > 0 && !toUpdate.containsKey("type")) { setCacheValue("type", Util.join("|", getType())); } super.update(); } }
/** * {@inheritDoc} */ @Override public void update(Map<String, Object> args) { // If not present in the update keys, add required attributes if (!args.containsKey("classes")) args = Args.create(args).add("classes", getClasses()); if (!args.containsKey("interval")) args = Args.create(args).add("interval", getInterval()); if (!args.containsKey("lookup_host")) args = Args.create(args).add( "lookup_host", getLookupHost()); super.update(args); }
/** * {@inheritDoc} */ @Override public void update(Map<String, Object> args) { // Add required arguments if not already present if (!args.containsKey("baseline")) { args = Args.create(args).add("baseline", getBaseline()); } if (!args.containsKey("hive")) { args = Args.create(args).add("hive", getHive()); } if (!args.containsKey("proc")) { args = Args.create(args).add("proc", getProc()); } if (!args.containsKey("type")) { args = Args.create(args).add("type", Util.join("|", getType())); } super.update(args); }