public final class

NonClusterManager

extends Object
implements ClusterManager
java.lang.Object
   ↳ com.atlassian.confluence.cluster.nonclustered.NonClusterManager

Summary

Public Constructors
NonClusterManager()
Public Methods
void configure(ClusterConfig config)
Set a new cluster configuration.
ClusterInformation getClusterInformation()
Get information about the running cluster.
ClusterInvariants getClusterInvariants()
Get all attributes of the server that must be consistent between cluster nodes.
ClusteredLock getClusteredLock(String key)
Get a distributed lock -- getting the lock does *not* imply that it has been acquired.
FifoBuffer getFifoBuffer(String name)
Get a distributed FIFO buffer
Lock getLock(String name)
Get a lock -- getting the lock does *not* imply that it has been acquired.
Map<IntegerNodeStatus> getNodeStatuses()
Gets status information from all members of the cluster.
Map getNodeStatusesForCluster()
int getPermittedClusterNodes()
Serializable getPublishedObject(String key)
Retrieve an object which another node in the cluster has shared, return null if no such object exists
ClusterNodeInformation getThisNodeInformation()

Get the identity of this node in the cluster.

void init()
boolean isClusterSupported()
Check whether this Confluence distribution is capable of running in a cluster.
boolean isClustered()
boolean isConfigured()
void publishEvent(ConfluenceEvent event)
Publish an event as a ClusterEventWrapper to other nodes
void publishObject(String key, Serializable object)
Publish the supplied object to the local Map maintained by this manager.
void reconfigure(ClusterConfig config)
Set a new cluster configuration and cycle the service
InetAddress resolveName(String name)
void shutdown()
void startCluster()
Start the clustering service
void stopCluster()
Stop the clustering service
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.cluster.ClusterManager
From interface com.atlassian.confluence.cluster.NameResolver
From interface com.atlassian.confluence.concurrent.LockFactory

Public Constructors

public NonClusterManager ()

Public Methods

public void configure (ClusterConfig config)

Set a new cluster configuration.

public ClusterInformation getClusterInformation ()

Get information about the running cluster.

public ClusterInvariants getClusterInvariants ()

Get all attributes of the server that must be consistent between cluster nodes.

Returns
  • the cluster invariants of this server

public ClusteredLock getClusteredLock (String key)

Get a distributed lock -- getting the lock does *not* imply that it has been acquired. Call tryLock() or lock() on the returned object to acquire the lock.

public FifoBuffer getFifoBuffer (String name)

Get a distributed FIFO buffer

public Lock getLock (String name)

Get a lock -- getting the lock does *not* imply that it has been acquired. Call tryLock() or lock() on the returned object to acquire the lock.

public Map<IntegerNodeStatus> getNodeStatuses ()

Gets status information from all members of the cluster.

Returns
  • a map of node IDs to node statuses

public Map getNodeStatusesForCluster ()

public int getPermittedClusterNodes ()

public Serializable getPublishedObject (String key)

Retrieve an object which another node in the cluster has shared, return null if no such object exists

Returns
  • a shared Object

public ClusterNodeInformation getThisNodeInformation ()

Get the identity of this node in the cluster. ClusterNodeInformation implements equals().

Returns
  • the identity of this node in the cluster. May return null if the node is not in a cluster.

public void init ()

public boolean isClusterSupported ()

Check whether this Confluence distribution is capable of running in a cluster. This differs from 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.

Returns
  • true if this Confluence installation is capable of running in a cluster

public boolean isClustered ()

public boolean isConfigured ()

public void publishEvent (ConfluenceEvent event)

Publish an event as a ClusterEventWrapper to other nodes

public void publishObject (String key, Serializable object)

Publish the supplied object to the local Map maintained by this manager.

public void reconfigure (ClusterConfig config)

Set a new cluster configuration and cycle the service

public InetAddress resolveName (String name)

public void shutdown ()

public void startCluster ()

Start the clustering service

public void stopCluster ()

Stop the clustering service