|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.cluster.tangosol.TangosolClusterManager
public class TangosolClusterManager
Implementation of a cluster manager that uses Tangosol Coherence
Nested Class Summary | |
---|---|
static class |
TangosolClusterManager.CacheServices
|
static class |
TangosolClusterManager.RetryOperation
|
Constructor Summary | |
---|---|
TangosolClusterManager(com.atlassian.config.ApplicationConfig applicationConfig,
java.lang.ClassLoader applicationClassLoader,
SynchronizationManager synchronizationManager)
|
Method Summary | |
---|---|
void |
configure(ClusterConfig config)
Set a new cluster config but do not cycle the service |
static java.util.Collection<com.tangosol.net.Service> |
enumerateCacheServices()
Deprecated. since 3.0, use getCacheServices() |
static TangosolClusterManager.CacheServices |
getCacheServices()
|
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. |
com.atlassian.core.task.FifoBuffer |
getFifoBuffer(java.lang.String name)
Get a distributed FIFO buffer |
com.tangosol.net.InvocationService |
getInvocationService()
|
Lock |
getLock(java.lang.String key)
Get a lock -- getting the lock does *not* imply that it has been acquired. |
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()
Start the Invocation Service to listen for invocations (@see EventInvocable) from other nodes in the cluster. |
boolean |
isClustered()
|
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)
Bootstrap a new cluster configuration. |
protected void |
registerClusterMemberEventLogger()
|
java.net.InetAddress |
resolveName(java.lang.String name)
Use this manager to resolver a cluster name to an IP address |
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 TangosolClusterManager(com.atlassian.config.ApplicationConfig applicationConfig, java.lang.ClassLoader applicationClassLoader, SynchronizationManager synchronizationManager)
Method Detail |
---|
@Deprecated public static java.util.Collection<com.tangosol.net.Service> enumerateCacheServices()
getCacheServices()
public static TangosolClusterManager.CacheServices getCacheServices()
public void init()
public void shutdown()
protected void registerClusterMemberEventLogger()
public void publishObject(java.lang.String key, java.io.Serializable object)
ClusterManager
publishObject
in interface ClusterManager
public java.io.Serializable getPublishedObject(java.lang.String key)
ClusterManager
getPublishedObject
in interface ClusterManager
public boolean isClustered()
isClustered
in interface ClusterManager
public int getPermittedClusterNodes()
getPermittedClusterNodes
in interface ClusterManager
public ClusterInformation getClusterInformation()
ClusterManager
getClusterInformation
in interface ClusterManager
public Lock getLock(java.lang.String key)
LockFactory
Lock.tryLock()
or Lock.lock()
on the returned object to
acquire the lock.
getLock
in interface LockFactory
public ClusteredLock getClusteredLock(java.lang.String key)
ClusterManager
Lock.tryLock()
or Lock.lock()
on the returned object to
acquire the lock.
getClusteredLock
in interface ClusterManager
public com.atlassian.core.task.FifoBuffer getFifoBuffer(java.lang.String name)
ClusterManager
getFifoBuffer
in interface ClusterManager
public void publishEvent(ConfluenceEvent event)
ClusterManager
publishEvent
in interface ClusterManager
public com.tangosol.net.InvocationService getInvocationService()
getInvocationService
in interface ClusterManager
InvocationService
which can be used for running code as an
Invocable
on all nodes in the cluster.public ClusterNodeInformation getThisNodeInformation()
ClusterManager
Get the identity of this node in the cluster. ClusterNodeInformation implements equals().
getThisNodeInformation
in interface ClusterManager
public void stopCluster()
ClusterManager
stopCluster
in interface ClusterManager
public void startCluster()
ClusterManager
startCluster
in interface ClusterManager
public java.net.InetAddress resolveName(java.lang.String name)
resolveName
in interface NameResolver
name
-
public void configure(ClusterConfig config)
configure
in interface ClusterManager
config
- public boolean isConfigured()
isConfigured
in interface ClusterManager
ClusterManager.configure(ClusterConfig)
has been called with a
valid configuration, otherwise false.public void reconfigure(ClusterConfig config)
reconfigure
in interface ClusterManager
config
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |