Package org.rioproject.impl.client

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


     * @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

Related Classes of org.rioproject.impl.client.LookupCachePool

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.