View Javadoc
1   package com.atlassian.plugin.manager;
2   
3   import com.atlassian.annotations.PublicSpi;
4   
5   /**
6    * Allows to check if the application (e.g. JIRA) is running in the cluster environment
7    */
8   @PublicSpi
9   public interface ClusterEnvironmentProvider {
10      /**
11       * Default single node implementation (always false) just for convenience
12       * This value must be used for single node environments only
13       */
14      ClusterEnvironmentProvider SINGLE_NODE = () -> false;
15  
16      /**
17       * @return true if the application is running within the cluster environment
18       */
19      boolean isInCluster();
20  }