Class NonClusterMonitoring

  • All Implemented Interfaces:
    com.atlassian.cluster.monitoring.spi.ClusterMonitoring

    @Internal
    public final class NonClusterMonitoring
    extends Object
    implements com.atlassian.cluster.monitoring.spi.ClusterMonitoring
    An implementation of ClusterMonitoring for use when no clustering is configured. It provides non-sensible default implementation.
    Since:
    5.7
    • Constructor Detail

      • NonClusterMonitoring

        public NonClusterMonitoring​(com.atlassian.config.ApplicationConfiguration applicationConfiguration)
    • Method Detail

      • getNodes

        public io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,​List<com.atlassian.cluster.monitoring.spi.model.NodeInformation>> getNodes()
        Specified by:
        getNodes in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
      • getCurrentNode

        public io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,​com.atlassian.cluster.monitoring.spi.model.NodeIdentifier> getCurrentNode()
        Specified by:
        getCurrentNode in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
      • getData

        public io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,​com.atlassian.cluster.monitoring.spi.model.Table> getData​(com.atlassian.plugin.ModuleCompleteKey key,
                                                                                                                                                                    com.atlassian.cluster.monitoring.spi.model.NodeIdentifier nodeId)
        Specified by:
        getData in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
      • isAvailable

        public boolean isAvailable()
        Specified by:
        isAvailable in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
      • isDataCenterLicensed

        public boolean isDataCenterLicensed()
        Specified by:
        isDataCenterLicensed in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
      • isClusterSetupEnabled

        public boolean isClusterSetupEnabled()
        Specified by:
        isClusterSetupEnabled in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
      • enableClustering

        public boolean enableClustering()
        Specified by:
        enableClustering in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring