@Override public Substitution newInstance() { return new ContextSubstitution(this.conf.getKey(), this.conf.getIncludes(), this.conf.getExcludes(), this.conf.getFailDstNotFound()); } }
@Override protected void doSubstitution(InternalEvent ievent, DeserializedEvent devent, Map<String, Object> nested) { Map<String, String> context = getContext(ievent); nested.put(this.key, context); }
@Override public boolean equals(Object o) { if (!super.equals(o)) { return false; } if (!(o instanceof ContextSubstitutionConfig)) { return false; } ContextSubstitutionConfig other = (ContextSubstitutionConfig) o; if (this.includes.equals(other.getIncludes())) { return false; } if (this.excludes.equals(other.getExcludes())) { return false; } return true; }
@Override public Substitution newInstance() { return new ContextSubstitution(this.conf.getKey(), this.conf.getIncludes(), this.conf.getExcludes(), this.conf.getFailDstNotFound()); } }
@Override public boolean equals(Object o) { if (!super.equals(o)) { return false; } if (!(o instanceof ContextSubstitutionConfig)) { return false; } ContextSubstitutionConfig other = (ContextSubstitutionConfig) o; if (this.includes.equals(other.getIncludes())) { return false; } if (this.excludes.equals(other.getExcludes())) { return false; } return true; }
@Override protected void doSubstitution(InternalEvent ievent, DeserializedEvent devent, Map<String, Object> nested) { Map<String, String> context = getContext(ievent); nested.put(this.key, context); }
@Override protected void doSubstitution(InternalEvent ievent, DeserializedEvent devent) { Map<String, String> context = getContext(ievent); try { devent.setField(this.key, context); } catch (FieldNotFoundException e) { if (this.failDstNotFound) { throw new OperationException(e); } } }
@Override protected void doSubstitution(InternalEvent ievent, DeserializedEvent devent) { Map<String, String> context = getContext(ievent); try { devent.setField(this.key, context); } catch (FieldNotFoundException e) { if (this.failDstNotFound) { throw new OperationException(e); } } }