|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterManager
Method Summary | ||
---|---|---|
void |
configure(ClusterConfig config)
Set a new cluster configuration. |
|
java.util.Collection<ClusterNodeInformation> |
getAllNodesInformation()
|
|
ClusteredLock |
getClusteredLock(java.lang.String key)
Get a distributed lock -- getting the lock does *not* imply that it has been acquired. |
|
ClusterInformation |
getClusterInformation()
Get information about the running cluster. |
|
ClusterInvariants |
getClusterInvariants()
Get all attributes of the server that must be consistent between cluster nodes. |
|
|
getFifoBuffer(java.lang.String name)
Get a distributed FIFO buffer |
|
java.util.Map<java.lang.Integer,NodeStatus> |
getNodeStatuses()
Deprecated. since 5.5 Use getAllNodesInformation() |
|
java.util.Map |
getNodeStatusesForCluster()
Deprecated. since 3.1 leaks Coherence classes, do not use. |
|
int |
getPermittedClusterNodes()
|
|
java.io.Serializable |
getPublishedObject(java.lang.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. |
|
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 |
publishObject(java.lang.String key,
java.io.Serializable object)
Share an object to the cluster under a particular key. |
|
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 |
Methods inherited from interface com.atlassian.confluence.cluster.NameResolver |
---|
resolveName |
Methods inherited from interface com.atlassian.confluence.concurrent.LockFactory |
---|
getLock |
Method Detail |
---|
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.
void publishObject(java.lang.String key, java.io.Serializable object)
key
- object
- java.io.Serializable getPublishedObject(java.lang.String key)
key
-
boolean isClustered()
int getPermittedClusterNodes()
ClusterInformation getClusterInformation()
ClusteredLock getClusteredLock(java.lang.String key)
Lock.tryLock()
or Lock.lock()
on the returned object to
acquire the lock.
<T> com.atlassian.core.task.FifoBuffer<T> getFifoBuffer(java.lang.String name)
void publishEvent(ConfluenceEvent event)
ClusterNodeInformation getThisNodeInformation()
Get the identity of this node in the cluster. ClusterNodeInformation implements equals().
java.util.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 java.util.Map<java.lang.Integer,NodeStatus> getNodeStatuses()
getAllNodesInformation()
ClusterInvariants getClusterInvariants() throws ClusterException
ClusterException
- if the invariants can not be gathered for some reason@Deprecated java.util.Map getNodeStatusesForCluster()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |