public interface ClusteringFeature
XClusterManager
Modifier and Type | Method and Description |
---|---|
org.adroitlogic.x.api.clustering.locks.XClusterLock |
getClusterLock(String lockPath)
Returns a distributed lock unique to the given path.
|
String |
getCommandSpace()
Name of the command space to which this cluster manager is listening to.
|
String |
getDomain()
Domain of this node.
|
Optional<Integer> |
getNextSequenceNumber(String path)
Generates a distributed sequence number which is the next in line of a distributed sequence.
|
String |
getNodeName()
Get the name of the cluster manager's node.
|
org.adroitlogic.x.api.Status |
getStatus()
Get the cluster manager's current
Status . |
boolean |
isClusteringEnabled()
API to check whether the clustering is enabled within the framework
|
String |
publishControlCommand(org.adroitlogic.x.api.clustering.XControlCommand command)
Publishes a command to the cluster.
|
org.adroitlogic.x.api.clustering.locks.XClusterLock getClusterLock(String lockPath)
XClusterLock
can be used to acquire a
lock which will guarantee a critical section between different instances of the cluster manager (project x/ultraESB)lockPath
- lock pathOptional<Integer> getNextSequenceNumber(String path)
Optional
as the result. Users have to check whether the value is available.path
- path to be used to generate the sequence numberString publishControlCommand(org.adroitlogic.x.api.clustering.XControlCommand command)
XControlCommand
instance should be provided as the command. The command
will be marshaled and sent to the zookeeper for publishing the command.command
- the command to be publishedorg.adroitlogic.x.api.Status getStatus()
Status
.String getNodeName()
String getCommandSpace()
String getDomain()
boolean isClusteringEnabled()
Copyright © 2016–2019 AdroitLogic. All rights reserved.