-
Notifications
You must be signed in to change notification settings - Fork 20
Conversation
@@ -30,10 +33,12 @@ | |||
|
|||
private Collator collator; | |||
private boolean isMuted = false; | |||
private List<ActionListener> actionListeners; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make this list thread safe ? it looks to me that addActionListener() is called from a different thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should only be called during instantiation of the graph, not during regular scheduling.
...n/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/plugins/PluginController.java
Outdated
Show resolved
Hide resolved
...n/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/plugins/PluginController.java
Show resolved
Hide resolved
2c1e740
to
a0a3d3a
Compare
c3d4169
to
5366e63
Compare
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class PluginControllerConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use a singleton pattern here instead of static? Then we can avoid the PowerMock stuff in the test class and have multiple configs in one JVM context
...va/com/amazon/opendistro/elasticsearch/performanceanalyzer/plugins/PluginControllerTest.java
Outdated
Show resolved
Hide resolved
0da4e8c
to
0ea01ef
Compare
0ea01ef
to
4070fb3
Compare
4070fb3
to
d207d65
Compare
Codecov Report
@@ Coverage Diff @@
## master #295 +/- ##
============================================
+ Coverage 67.23% 67.32% +0.08%
- Complexity 2002 2020 +18
============================================
Files 291 295 +4
Lines 12924 12974 +50
Branches 1057 1062 +5
============================================
+ Hits 8690 8735 +45
- Misses 3860 3864 +4
- Partials 374 375 +1
Continue to review full report at Codecov.
|
Issue #: 316
#316
Description of changes: Allows users to plugin different action listeners to publisher. Action suggestions are published to each listener.
Tests: WIP
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.