Class NonClusterMonitoring
- java.lang.Object
-
- com.atlassian.confluence.cluster.nonclustered.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 ofClusterMonitoring
for use when no clustering is configured. It provides non-sensible default implementation.- Since:
- 5.7
-
-
Constructor Summary
Constructors Constructor Description NonClusterMonitoring(com.atlassian.config.ApplicationConfiguration applicationConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
enableClustering()
io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,com.atlassian.cluster.monitoring.spi.model.NodeIdentifier>
getCurrentNode()
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)
io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,List<com.atlassian.cluster.monitoring.spi.model.NodeInformation>>
getNodes()
boolean
isAvailable()
boolean
isClusterSetupEnabled()
boolean
isDataCenterLicensed()
-
-
-
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 interfacecom.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 interfacecom.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 interfacecom.atlassian.cluster.monitoring.spi.ClusterMonitoring
-
isAvailable
public boolean isAvailable()
- Specified by:
isAvailable
in interfacecom.atlassian.cluster.monitoring.spi.ClusterMonitoring
-
isDataCenterLicensed
public boolean isDataCenterLicensed()
- Specified by:
isDataCenterLicensed
in interfacecom.atlassian.cluster.monitoring.spi.ClusterMonitoring
-
isClusterSetupEnabled
public boolean isClusterSetupEnabled()
- Specified by:
isClusterSetupEnabled
in interfacecom.atlassian.cluster.monitoring.spi.ClusterMonitoring
-
enableClustering
public boolean enableClustering()
- Specified by:
enableClustering
in interfacecom.atlassian.cluster.monitoring.spi.ClusterMonitoring
-
-