Search in sources :

Example 1 with ClusterAppStateImpl

use of org.sonar.application.cluster.ClusterAppStateImpl in project sonarqube by SonarSource.

the class AppStateFactory method create.

public AppState create() {
    if (ClusterSettings.shouldStartHazelcast(settings)) {
        EsConnector esConnector = createEsConnector(settings.getProps());
        HazelcastMember hzMember = createHzMember(settings.getProps());
        AppNodesClusterHostsConsistency appNodesClusterHostsConsistency = AppNodesClusterHostsConsistency.setInstance(hzMember, settings);
        return new ClusterAppStateImpl(settings, hzMember, esConnector, appNodesClusterHostsConsistency);
    }
    return new AppStateImpl();
}
Also used : EsConnector(org.sonar.application.es.EsConnector) AppNodesClusterHostsConsistency(org.sonar.application.cluster.AppNodesClusterHostsConsistency) ClusterAppStateImpl(org.sonar.application.cluster.ClusterAppStateImpl) HazelcastMember(org.sonar.process.cluster.hz.HazelcastMember) ClusterAppStateImpl(org.sonar.application.cluster.ClusterAppStateImpl)

Aggregations

AppNodesClusterHostsConsistency (org.sonar.application.cluster.AppNodesClusterHostsConsistency)1 ClusterAppStateImpl (org.sonar.application.cluster.ClusterAppStateImpl)1 EsConnector (org.sonar.application.es.EsConnector)1 HazelcastMember (org.sonar.process.cluster.hz.HazelcastMember)1