public class InfinispanClusterManager extends Object implements ClusterManager
| Constructor and Description |
|---|
InfinispanClusterManager()
Creates a new cluster manager configured with
infinispan.xml and jgroups.xml files. |
InfinispanClusterManager(org.infinispan.manager.DefaultCacheManager cacheManager)
Creates a new cluster manager with an existing
DefaultCacheManager. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic InfinispanClusterManager()
infinispan.xml and jgroups.xml files.public InfinispanClusterManager(org.infinispan.manager.DefaultCacheManager cacheManager)
DefaultCacheManager.
It is your responsibility to start/stop the cache manager when the Vert.x instance joins/leaves the cluster.cacheManager - the existing cache managerpublic void init(Vertx vertx, NodeSelector nodeSelector)
init in interface ClusterManagerpublic org.infinispan.commons.api.BasicCacheContainer getCacheContainer()
public <K,V> void getAsyncMap(String name, Promise<AsyncMap<K,V>> promise)
getAsyncMap in interface ClusterManagerpublic <K,V> Map<K,V> getSyncMap(String name)
getSyncMap in interface ClusterManagerpublic void getLockWithTimeout(String name, long timeout, Promise<Lock> prom)
getLockWithTimeout in interface ClusterManagerpublic void getCounter(String name, Promise<Counter> promise)
getCounter in interface ClusterManagerpublic String getNodeId()
getNodeId in interface ClusterManagerpublic List<String> getNodes()
getNodes in interface ClusterManagerpublic void nodeListener(NodeListener nodeListener)
nodeListener in interface ClusterManagerpublic void setNodeInfo(NodeInfo nodeInfo, Promise<Void> promise)
setNodeInfo in interface ClusterManagerpublic NodeInfo getNodeInfo()
getNodeInfo in interface ClusterManagerpublic void getNodeInfo(String nodeId, Promise<NodeInfo> promise)
getNodeInfo in interface ClusterManagerpublic void join(Promise<Void> promise)
join in interface ClusterManagerpublic void leave(Promise<Void> promise)
leave in interface ClusterManagerpublic boolean isActive()
isActive in interface ClusterManagerpublic void addRegistration(String address, RegistrationInfo registrationInfo, Promise<Void> promise)
addRegistration in interface ClusterManagerpublic void removeRegistration(String address, RegistrationInfo registrationInfo, Promise<Void> promise)
removeRegistration in interface ClusterManagerpublic void getRegistrations(String address, Promise<List<RegistrationInfo>> promise)
getRegistrations in interface ClusterManagerpublic String clusterHost()
clusterHost in interface ClusterManagerpublic String clusterPublicHost()
clusterPublicHost in interface ClusterManagerCopyright © 2023 Eclipse. All rights reserved.