|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cluster.nonclustered.NonClusterManager
public final class NonClusterManager
| Constructor Summary | |
|---|---|
NonClusterManager()
|
|
| Method Summary | |
|---|---|
void |
configure(ClusterConfig config)
Set a new cluster configuration. |
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. |
com.atlassian.core.task.FifoBuffer |
getFifoBuffer(java.lang.String name)
Get a distributed FIFO buffer |
Lock |
getLock(java.lang.String name)
Get a lock -- getting the lock does *not* imply that it has been acquired. |
java.util.Map<java.lang.Integer,NodeStatus> |
getNodeStatuses()
Gets status information from all members of the cluster. |
java.util.Map |
getNodeStatusesForCluster()
|
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. |
void |
init()
|
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)
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 |
java.net.InetAddress |
resolveName(java.lang.String name)
|
void |
shutdown()
|
void |
startCluster()
Start the clustering service |
void |
stopCluster()
Stop the clustering service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonClusterManager()
| Method Detail |
|---|
public void init()
public void shutdown()
public void configure(ClusterConfig config)
ClusterManager
configure in interface ClusterManagerpublic ClusterInformation getClusterInformation()
ClusterManager
getClusterInformation in interface ClusterManagerpublic ClusteredLock getClusteredLock(java.lang.String key)
ClusterManagerLock.tryLock() or Lock.lock() on the returned object to
acquire the lock.
getClusteredLock in interface ClusterManagerpublic com.atlassian.core.task.FifoBuffer getFifoBuffer(java.lang.String name)
ClusterManager
getFifoBuffer in interface ClusterManagerpublic int getPermittedClusterNodes()
getPermittedClusterNodes in interface ClusterManagerpublic java.io.Serializable getPublishedObject(java.lang.String key)
ClusterManager
getPublishedObject in interface ClusterManagerpublic ClusterNodeInformation getThisNodeInformation()
ClusterManagerGet the identity of this node in the cluster. ClusterNodeInformation implements equals().
getThisNodeInformation in interface ClusterManagerpublic boolean isClustered()
isClustered in interface ClusterManagerpublic boolean isConfigured()
isConfigured in interface ClusterManagerClusterManager.configure(ClusterConfig) has been called with a
valid configuration, otherwise false.public void publishEvent(ConfluenceEvent event)
ClusterManager
publishEvent in interface ClusterManagerpublic boolean isClusterSupported()
ClusterManagerClusterManager.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.
isClusterSupported in interface ClusterManager
public void publishObject(java.lang.String key,
java.io.Serializable object)
publishObject in interface ClusterManagerpublic void reconfigure(ClusterConfig config)
ClusterManager
reconfigure in interface ClusterManagerpublic void startCluster()
ClusterManager
startCluster in interface ClusterManagerpublic void stopCluster()
ClusterManager
stopCluster in interface ClusterManagerpublic java.net.InetAddress resolveName(java.lang.String name)
resolveName in interface NameResolverpublic Lock getLock(java.lang.String name)
LockFactoryLock.tryLock() or Lock.lock() on the returned object to
acquire the lock.
getLock in interface LockFactorypublic java.util.Map<java.lang.Integer,NodeStatus> getNodeStatuses()
ClusterManager
getNodeStatuses in interface ClusterManagerpublic ClusterInvariants getClusterInvariants()
ClusterManager
getClusterInvariants in interface ClusterManagerpublic java.util.Map getNodeStatusesForCluster()
getNodeStatusesForCluster in interface ClusterManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||