public interface ClusterManager extends NameResolver, LockFactory
Modifier and Type | Method and Description |
---|---|
void |
configure(ClusterConfig config)
Set a new cluster configuration.
|
Collection<ClusterNodeInformation> |
getAllNodesInformation() |
ClusteredLock |
getClusteredLock(String key)
Deprecated.
since 5.6 Use
ClusterLockService.getLockForName(String) instead. |
ClusterInformation |
getClusterInformation()
Get information about the running cluster.
|
ClusterInvariants |
getClusterInvariants()
Get all attributes of the server that must be consistent between cluster nodes.
|
<T> com.atlassian.core.task.FifoBuffer<T> |
getFifoBuffer(String name)
Get a distributed FIFO buffer
|
Map<Integer,NodeStatus> |
getNodeStatuses()
Deprecated.
since 5.5 Use
getNodeStatusMap() |
Map<ClusterNodeInformation,NodeStatus> |
getNodeStatusMap()
Gets status information from all members of the cluster.
|
int |
getPermittedClusterNodes()
Deprecated.
Since 5.6. Use
LicenseService.isLicensedForDataCenter()
instead as licensing is now based on clustering capability, not the number of nodes. |
Serializable |
getPublishedObject(String key)
Deprecated.
since 5.7 Use
SharedDataManager |
ClusterNodeInformation |
getThisNodeInformation()
Get the identity of this node in the cluster.
|
boolean |
isClustered() |
boolean |
isClusterSupported()
Check whether this Confluence distribution is capable of running in a cluster.
|
boolean |
isConfigured() |
void |
publishEvent(ConfluenceEvent event)
Publish an event as a ClusterEventWrapper to other nodes
|
void |
publishEventImmediately(ConfluenceEvent event)
Publish immediately, an event as a ClusterEventWrapper to other nodes
|
void |
publishObject(String key,
Serializable object)
Deprecated.
since 5.7 Use
SharedDataManager |
void |
reconfigure(ClusterConfig config)
Set a new cluster configuration and cycle the service
|
void |
startCluster()
Start the clustering service
|
void |
stopCluster()
Stop the clustering service
|
resolveName
getLock
boolean isClusterSupported()
isClustered()
in that it will return true if the code to support clustering is present,
even if this instance does not have a clustered license or a current clustering configuration.@Deprecated void publishObject(String key, Serializable object)
SharedDataManager
key
- object
- @Deprecated Serializable getPublishedObject(String key)
SharedDataManager
key
- boolean isClustered()
@Deprecated int getPermittedClusterNodes()
LicenseService.isLicensedForDataCenter()
instead as licensing is now based on clustering capability, not the number of nodes.Integer.MAX_VALUE
, otherwise
returns 0.ClusterInformation getClusterInformation()
@Deprecated ClusteredLock getClusteredLock(String key)
ClusterLockService.getLockForName(String)
instead.Lock.tryLock()
or Lock.lock()
on the returned object to
acquire the lock.<T> com.atlassian.core.task.FifoBuffer<T> getFifoBuffer(String name)
void publishEvent(ConfluenceEvent event)
This waits for any current transaction to be committed successfully before scheduling the event for publishing.
void publishEventImmediately(ConfluenceEvent event)
This is done immediately regardless of the state of any current transactions.
@Nullable ClusterNodeInformation getThisNodeInformation()
Get the identity of this node in the cluster. ClusterNodeInformation implements equals().
Collection<ClusterNodeInformation> getAllNodesInformation()
void configure(ClusterConfig config)
config
- boolean isConfigured()
configure(ClusterConfig)
has been called with a
valid configuration, otherwise false.void reconfigure(ClusterConfig config)
config
- void stopCluster()
void startCluster()
@Deprecated Map<Integer,NodeStatus> getNodeStatuses()
getNodeStatusMap()
Map<ClusterNodeInformation,NodeStatus> getNodeStatusMap()
ClusterInvariants getClusterInvariants() throws ClusterException
ClusterException
- if the invariants can not be gathered for some reasonCopyright © 2003–2016 Atlassian. All rights reserved.