Package net.sf.ehcache.distribution

Examples of net.sf.ehcache.distribution.CacheManagerPeerProvider


    public boolean isDistributed()
    {
        // check if cache part of a distributed cluster
        try
        {
            CacheManagerPeerProvider peerProvider = ehcache.getCacheManager().getCacheManagerPeerProvider("RMI");
            return ((peerProvider != null) && (peerProvider.listRemoteCachePeers(ehcache).size() > 0));
        }
        catch (CacheException ce)
        {
        }
        return false;
View Full Code Here


    public boolean isDistributed()
    {
        // check if cache part of a distributed cluster
        try
        {
            CacheManagerPeerProvider peerProvider = ehcache.getCacheManager().getCachePeerProvider();
            return ((peerProvider != null) && (peerProvider.listRemoteCachePeers(ehcache).size() > 0));
        }
        catch (CacheException ce)
        {
        }
        return false;
View Full Code Here

                CacheManagerPeerProviderFactory cacheManagerPeerProviderFactory =
                        (CacheManagerPeerProviderFactory)
                                ClassLoaderUtil.createNewInstance(className);
                Properties properties = PropertyUtil.parseProperties(factoryConfiguration.getProperties(),
                        factoryConfiguration.getPropertySeparator());
                CacheManagerPeerProvider cacheManagerPeerProvider =
                        cacheManagerPeerProviderFactory.createCachePeerProvider(cacheManager, properties);
                cacheManagerPeerProviders.put(cacheManagerPeerProvider.getScheme(), cacheManagerPeerProvider);

            }
        }
        return cacheManagerPeerProviders;
    }
View Full Code Here

    public boolean isDistributed()
    {
        // check if cache part of a distributed cluster
        try
        {
            CacheManagerPeerProvider peerProvider = ehcache.getCacheManager().getCachePeerProvider();
            return ((peerProvider != null) && (peerProvider.listRemoteCachePeers(ehcache).size() > 0));
        }
        catch (CacheException ce)
        {
        }
        return false;
View Full Code Here

                CacheManagerPeerProviderFactory cacheManagerPeerProviderFactory =
                        (CacheManagerPeerProviderFactory)
                                ClassLoaderUtil.createNewInstance(className);
                Properties properties = PropertyUtil.parseProperties(factoryConfiguration.getProperties(),
                        factoryConfiguration.getPropertySeparator());
                CacheManagerPeerProvider cacheManagerPeerProvider =
                        cacheManagerPeerProviderFactory.createCachePeerProvider(cacheManager, properties);
                cacheManagerPeerProviders.put(cacheManagerPeerProvider.getScheme(), cacheManagerPeerProvider);

            }
        }
        return cacheManagerPeerProviders;
    }
View Full Code Here

    public boolean isDistributed()
    {
        // check if cache part of a distributed cluster
        try
        {
            CacheManagerPeerProvider peerProvider = ehcache.getCacheManager().getCacheManagerPeerProvider("RMI");
            return ((peerProvider != null) && (peerProvider.listRemoteCachePeers(ehcache).size() > 0));
        }
        catch (CacheException ce)
        {
        }
        return false;
View Full Code Here

TOP

Related Classes of net.sf.ehcache.distribution.CacheManagerPeerProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.