org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager Maven / Gradle / Ivy
package org.infinispan.manager.impl;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.Configuration;
import org.infinispan.factories.GlobalComponentRegistry;
import org.infinispan.lifecycle.ComponentStatus;
import org.infinispan.manager.EmbeddedCacheManager;
import org.infinispan.remoting.transport.Address;
import org.infinispan.remoting.transport.Transport;
import java.util.List;
import java.util.Set;
/**
* This is a convenient base class for implementing a cache manager delegate.
*
* The only constructor takes a {@link org.infinispan.manager.EmbeddedCacheManager}
* argument, to which each method call is delegated. One can extend this class and only override the method sub-set
* it is interested in.
*
* @author Dan Berindei <[email protected]>
* @see org.infinispan.cache.impl.AbstractDelegatingCache
* @see org.infinispan.cache.impl.AbstractDelegatingAdvancedCache
*/
public class AbstractDelegatingEmbeddedCacheManager implements EmbeddedCacheManager {
protected EmbeddedCacheManager cm;
public AbstractDelegatingEmbeddedCacheManager(EmbeddedCacheManager cm) {
this.cm = cm;
}
@Override
public org.infinispan.configuration.cache.Configuration defineConfiguration(String cacheName,
org.infinispan.configuration.cache.Configuration configuration) {
return cm.defineConfiguration(cacheName, configuration);
}
@Override
public Configuration defineConfiguration(String cacheName, String templateCacheName, Configuration configurationOverride) {
return cm.defineConfiguration(cacheName, templateCacheName, configurationOverride);
}
@Override
public String getClusterName() {
return cm.getClusterName();
}
@Override
public List getMembers() {
return cm.getMembers();
}
@Override
public Address getAddress() {
return cm.getAddress();
}
@Override
public Address getCoordinator() {
return cm.getCoordinator();
}
@Override
public boolean isCoordinator() {
return cm.isCoordinator();
}
@Override
public ComponentStatus getStatus() {
return cm.getStatus();
}
@Override
public org.infinispan.configuration.cache.Configuration getDefaultCacheConfiguration() {
return cm.getDefaultCacheConfiguration();
}
@Override
public org.infinispan.configuration.global.GlobalConfiguration getCacheManagerConfiguration() {
return cm.getCacheManagerConfiguration();
}
@Override
public org.infinispan.configuration.cache.Configuration getCacheConfiguration(String name) {
return cm.getCacheConfiguration(name);
}
@Override
public Set getCacheNames() {
return cm.getCacheNames();
}
@Override
public boolean isRunning(String cacheName) {
return cm.isRunning(cacheName);
}
@Override
public boolean isDefaultRunning() {
return cm.isDefaultRunning();
}
@Override
public boolean cacheExists(String cacheName) {
return cm.cacheExists(cacheName);
}
@Override
public Cache getCache(String cacheName, boolean createIfAbsent) {
return cm.getCache(cacheName, createIfAbsent);
}
@Override
public EmbeddedCacheManager startCaches(String... cacheNames) {
return cm.startCaches(cacheNames);
}
@Override
public void removeCache(String cacheName) {
cm.removeCache(cacheName);
}
@Override
public Transport getTransport() {
return cm.getTransport();
}
@Override
public Cache getCache() {
return cm.getCache();
}
@Override
public Cache getCache(String cacheName) {
return cm.getCache(cacheName);
}
@Override
public void start() {
cm.start();
}
@Override
public void stop() {
cm.stop();
}
@Override
public GlobalComponentRegistry getGlobalComponentRegistry() {
return cm.getGlobalComponentRegistry();
}
@Override
public void addCacheDependency(String from, String to) {
cm.addCacheDependency(from, to);
}
@Override
public void addListener(Object listener) {
cm.addListener(listener);
}
@Override
public void removeListener(Object listener) {
cm.removeListener(listener);
}
@Override
public Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy