1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /*
- * SonarQube
- * Copyright (C) 2009-2021 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";
-
- private HazelcastObjects() {
- // Holder for clustered objects
- }
- }
|