private void setConfiguration(final IUpdatedClientConfig updatedClientConfig) { ((IClientConfig) getConfig()).setUpdatedConfig(updatedClientConfig); }
/** * Updates informations about clustering for the object with the given name. * @param objectName a name of object * @throws RemoteException * @throws ObjectNotFoundException if none object has the given name */ public void pullAndUpdateObjectInfos(final String objectName) throws RemoteException, ObjectNotFoundException { LOGGER.debug("Updating infos for: {0} - thread is {1}", objectName, Thread.currentThread().getName()); synchronized (clientClusterViewCache) { if(objectName.equals(getConfig().getClientProviderName()) && clientClusterViewCache.getClusteredObject(objectName).getCMIReferences().isEmpty()) { LOGGER.warn("No provider URLs found for the provider, trying with the initials: ", providerServerRefs); clientClusterViewCache.getClusteredObject(objectName).setCMIReferences(providerServerRefs); } pullAddUpdateReplicationInfos(objectName); pullAndUpdatePolicy(objectName); pullAndUpdateCMIReferences(objectName); } }
/** * 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); }
String providerName = getConfig().getClientProviderName();