blob: 8624321fc43a628ac665fcfa9867e2d6974758e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/*
* SonarQube
* Copyright (C) 2009-2025 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.process.cluster.hz;
/**
* This class holds all object keys accessible via Hazelcast
*/
public final class HazelcastObjects {
/**
* The key of replicated map that hold all operational processes
*/
public static final String OPERATIONAL_PROCESSES = "OPERATIONAL_PROCESSES";
/**
* The key of atomic reference holding the leader UUID
*/
public static final String LEADER = "LEADER";
/**
* The key of atomic reference holding the SonarQube version of the cluster
*/
public static final String SONARQUBE_VERSION = "SONARQUBE_VERSION";
/**
* The key of atomic reference holding the name of the cluster (used for precondition checks)
*/
public static final String CLUSTER_NAME = "CLUSTER_NAME";
/**
* The key of replicated map holding the CeWorker UUIDs
*/
public static final String WORKER_UUIDS = "WORKER_UUIDS";
/**
* The key of the lock for executing CE_CLEANING_JOB
* {@link CeCleaningSchedulerImpl}
*/
public static final String CE_CLEANING_JOB_LOCK = "CE_CLEANING_JOB_LOCK";
/**
* THe key of the replicated map holding the health state information of all SQ nodes.
*/
public static final String SQ_HEALTH_STATE = "sq_health_state";
/**
* Used in the header of HTTP call between the nodes to authenticate requests
*/
public static final String AUTH_SECRET = "AUTH_SECRET";
/**
* The key of replicated map holding the secrets. Used instead of CP Subsystem.
*/
public static final String SECRETS = "SECRETS";
private HazelcastObjects() {
// Holder for clustered objects
}
}
|