Class<?> itfClass = clusteredObjectInfo.getItfClass(); String businessName = null; String itfName = null; .getBusinessClass(); itfName = itfClass.getName(); .getPolicyType(); if (policyClass == null) { policyClass = FirstAvailable.class; .getStrategyType(); if (strategyClass == null) { strategyClass = NoStrategy.class; String clusterName = clusteredObjectInfo.getClusterName(); boolean proxyEnabled = clusteredObjectInfo.isProxyEnabled(); IPoolConfiguration poolConfiguration = clusteredObjectInfo.getPoolConfiguration(); if (poolConfiguration == null) { poolConfiguration = new PoolConfiguration(); Map<String, Object> properties = clusteredObjectInfo.getProperties(); boolean hasState = clusteredObjectInfo.hasState(); boolean replicated = clusteredObjectInfo.isReplicated(); Set<String> applicationExceptionNames = clusteredObjectInfo.getApplicationExceptionNames(); if (applicationExceptionNames == null) { applicationExceptionNames = new HashSet<String>();
/** * Registers the dummy registry as an object to watch. * @throws ClientClusterViewManagerException */ private void initDataOfDummyRegistry() throws ClientClusterViewManagerException { String dummyName = getConfig().getDummyRegistryName(); ClusteredObjectInfo clusteredObjectInfo; // Extracts informations on clustering of dummy context try { clusteredObjectInfo = CMIInfoExtractor.extractClusteringInfoFromAnnotatedPOJO( dummyName, null, ClusteredDummyRegistry.class, false, null); } catch (CMIInfoExtractorException e) { LOGGER.error("Cannot get infos for dummy registry", e); throw new ClientClusterViewManagerException("Cannot get infos for dummy registry", e); } clientClusterViewCache.addClusteredObject( clusteredObjectInfo.getClusterName(), clusteredObjectInfo.isProxyEnabled(), dummyName, null, null, clusteredObjectInfo.hasState(), clusteredObjectInfo.getApplicationExceptionNames()); watch(dummyName); }
Class<?> itfClass = clusteredObjectInfo.getItfClass(); Class<? extends EJBObject> businessClass = clusteredObjectInfo.getBusinessClass(); String businessName = null; if(businessClass != null) { clusteredObjectInfo.getClusterName(), clusteredObjectInfo.isProxyEnabled(), providerName, itfClass.getName(), businessName, clusteredObjectInfo.hasState(), clusteredObjectInfo.getApplicationExceptionNames()); Class<? extends IPolicy<?>> policyClass = clusteredObjectInfo.getPolicyType(); Class<? extends IStrategy<?>> strategyClass = clusteredObjectInfo.getStrategyType(); new PolicyData(policyClassname, strategyClassname, clusteredObjectInfo.getProperties()); clusteredObjectView.setPolicyData(policyDataForProvider); clientClusterViewCache.setPolicyClass(policyClassname, policyClass); pool.setPoolConfiguration(clusteredObjectInfo.getPoolConfiguration()); setPool(providerName, pool);