Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

EAGLE-1038: Support alertDuplication customization for each policy#944

Closed
qingwen220 wants to merge 2 commits intoapache:masterfrom
qingwen220:minor
Closed

EAGLE-1038: Support alertDuplication customization for each policy#944
qingwen220 wants to merge 2 commits intoapache:masterfrom
qingwen220:minor

Conversation

@qingwen220
Copy link
Contributor

@qingwen220 qingwen220 commented Jun 7, 2017

https://issues.apache.org/jira/browse/EAGLE-1038

  • support duplication check for each outputStream of a policy
  • compatible with the duplication check in old versions (check in a publisher)

private long createdTime;
private String category;
private AlertSeverity severity = AlertSeverity.WARNING;
private boolean duplicationChecked = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just using private boolean duplicationChecked; is fine, because the default value of boolean in jdk is false.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if the default value changes in different JDK versions?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is impossible to change it, because there is no other better way to design it and redesignning it will bring too much impact ...

@asfgit asfgit closed this in e2fbb86 Jun 8, 2017
@qingwen220 qingwen220 deleted the minor branch June 8, 2017 06:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants