Examples of LookupCachePool


Examples of org.rioproject.impl.client.LookupCachePool

                    }
                    logger.trace("Association [{}]  ProxyPreparer : {}",
                                 associationDescriptor.getName(), proxyPreparer.getClass().getName());
                    template = JiniClient.getServiceTemplate(associationDescriptor, callerCL);
                    logger.trace("Created ServiceTemplate {}", template.toString());
                    LookupCachePool lcPool = LookupCachePool.getInstance();
                    String sharedName = associationDescriptor.getOperationalStringName();

                    lCache = lcPool.getLookupCache(sharedName, associationDescriptor.getGroups(), associationDescriptor.getLocators(), template);
                    lCache.addListener(this);
                    logger.debug("DefaultAssociationManagement for [{}], obtained LookupCache for [{}]",
                                 clientName, associationDescriptor.getName());
                } else {
                    lookupServiceHandler = new LookupServiceHandler(associationDescriptor, this, getConfiguration());
View Full Code Here

Examples of org.rioproject.impl.client.LookupCachePool

     * @throws ConfigurationException if the configuration cannot be used
     */
    void initializeProvisionDiscovery(final DiscoveryManagement dm) throws IOException, ConfigurationException {
        if(lCache==null) {
            ServiceTemplate template = new ServiceTemplate(null, new Class[] {ProvisionManager.class}, null);
            LookupCachePool lcPool = LookupCachePool.getInstance();
            lCache = lcPool.getLookupCache(dm, template);
            lCache.addListener(this);
        } else {
            for(Map.Entry<ServiceID, ProvisionManager> entry : provisionerMap.entrySet()) {
                register(entry.getKey(), entry.getValue());
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.