aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process
diff options
context:
space:
mode:
authorDamien Urruty <damien.urruty@sonarsource.com>2022-02-24 14:51:07 +0100
committersonartech <sonartech@sonarsource.com>2022-02-25 20:02:53 +0000
commit0253f591bd017cb9a9c8e365fa074a7bc4b0a2a0 (patch)
treee9b2794b0904a2aa999273c1d1075e6aba86e08b /server/sonar-process
parent9828d4922ec6064d0c7814b285a639ef1f838de4 (diff)
downloadsonarqube-0253f591bd017cb9a9c8e365fa074a7bc4b0a2a0.tar.gz
sonarqube-0253f591bd017cb9a9c8e365fa074a7bc4b0a2a0.zip
SONAR-15919 Rename RuleSetChangedEvent and fix payload format
Diffstat (limited to 'server/sonar-process')
-rw-r--r--server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMember.java4
-rw-r--r--server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberImpl.java8
2 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMember.java b/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMember.java
index 320a867eb29..2f0ec8cb8e0 100644
--- a/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMember.java
+++ b/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMember.java
@@ -27,7 +27,7 @@ import java.util.Set;
import java.util.UUID;
import java.util.concurrent.locks.Lock;
import org.sonar.core.util.RuleActivationListener;
-import org.sonar.core.util.RuleSetChangeEvent;
+import org.sonar.core.util.RuleSetChangedEvent;
import org.sonar.process.ProcessId;
public interface HazelcastMember extends AutoCloseable {
@@ -110,7 +110,7 @@ public interface HazelcastMember extends AutoCloseable {
void subscribeRuleActivationTopic(RuleActivationListener listener);
- void publishEvent(RuleSetChangeEvent event);
+ void publishEvent(RuleSetChangedEvent event);
@Override
void close();
diff --git a/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberImpl.java b/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberImpl.java
index 9b223cb0c61..89a9b75f994 100644
--- a/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberImpl.java
+++ b/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberImpl.java
@@ -40,7 +40,7 @@ import java.util.concurrent.locks.Lock;
import java.util.stream.Collectors;
import org.slf4j.LoggerFactory;
import org.sonar.core.util.RuleActivationListener;
-import org.sonar.core.util.RuleSetChangeEvent;
+import org.sonar.core.util.RuleSetChangedEvent;
class HazelcastMemberImpl implements HazelcastMember {
@@ -131,13 +131,13 @@ class HazelcastMemberImpl implements HazelcastMember {
@Override
public void subscribeRuleActivationTopic(RuleActivationListener listener) {
- ITopic<RuleSetChangeEvent> topic = hzInstance.getTopic("ruleActivated");
- MessageListener<RuleSetChangeEvent> hzListener = message -> listener.listen(message.getMessageObject());
+ ITopic<RuleSetChangedEvent> topic = hzInstance.getTopic("ruleActivated");
+ MessageListener<RuleSetChangedEvent> hzListener = message -> listener.listen(message.getMessageObject());
topic.addMessageListener(hzListener);
}
@Override
- public void publishEvent(RuleSetChangeEvent event) {
+ public void publishEvent(RuleSetChangedEvent event) {
hzInstance.getTopic("ruleActivated").publish(event);
}