@Override public void addTunneledMBeanDomain(String mbeanDomain) { this.configHelper.addTunneledMBeanDomain(mbeanDomain); }
@Override public Object getChangeApplicator(final Class clazz) { return this.config.getChangeApplicator(clazz); }
public void set(final DSOClientConfigHelper config, final PreparedComponentsFromL2Connection connectionComponents) { this.portability = config.getPortability(); this.config = config; this.connectionComponents = connectionComponents; }
protected TCClass createTCClass(final Class clazz, final ClientObjectManager objectManager, final String className) { TCClass rv; if (className.equals(TCClassFactory.SERVER_MAP_CLASSNAME)) { rv = new ServerMapTCClassImpl(this.manager, this.globalLocalCacheManager, this.remoteServerMapManager, this.fieldFactory, this, objectManager, clazz, getLogicalSuperClassWithDefaultConstructor(clazz), this.config.getLogicalExtendingClassName(className), this.config.isLogical(className), this.config.isUseNonDefaultConstructor(clazz), this.config.useResolveLockWhenClearing(clazz), this.config.getPostCreateMethodIfDefined(className), this.config.getPreCreateMethodIfDefined(className)); } else { rv = new TCClassImpl(this.fieldFactory, this, objectManager, clazz, getLogicalSuperClassWithDefaultConstructor(clazz), this.config.getLogicalExtendingClassName(className), this.config.isLogical(className), this.config.isUseNonDefaultConstructor(clazz), this.config.useResolveLockWhenClearing(clazz), this.config.getPostCreateMethodIfDefined(className), this.config.getPreCreateMethodIfDefined(className)); } return rv; }
private void validateClientServerCompatibility() { try { this.config.validateClientServerCompatibility(securityManager, config.getSecurityInfo()); } catch (final ConfigurationSetupException e) { CONSOLE_LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage(), e); } }
final int faultCount = this.config.getFaultCount(); this.channel.getClientIDProvider(), this.classProvider, classFactory, objectFactory, this.config.getPortability(), globalLocalCacheManager, abortableOperationManager); teh); this.l1Management = this.dsoClientBuilder.createL1Management(teh, this.config.rawConfigText(), this); this.l1Management.start(this.createDedicatedMBeanServer);
@Override public TransparencyClassSpec getClassSpec(final String clazzName) { String name = clazzName.replace('/', '.'); return configuration.getSpec(name); }
private void validateSecurityConfig() { if (config.getSecurityInfo().isSecure() && securityManager == null) { throw new TCRuntimeException( "client configured as secure but was constructed without securityManager"); } if (!config.getSecurityInfo().isSecure() && securityManager != null) { throw new TCRuntimeException( "client not configured as secure but was constructed with securityManager"); } }
@Override public void reloadConfiguration() throws ConfigurationSetupException { L1ConfigurationSetupManager newConfig = getClientConfigHelper().reloadServersConfiguration(); PreparedComponentsFromL2Connection connComp = new PreparedComponentsFromL2Connection(newConfig, securityManager); ConnectionInfoConfig[] connectionInfoItems = connComp.createConnectionInfoConfigItemByGroup(); ConnectionAddressProvider[] addrProviders = new ConnectionAddressProvider[connectionInfoItems.length]; for (int i = 0; i < connectionInfoItems.length; ++i) { ConnectionInfo[] connectionInfo = connectionInfoItems[i].getConnectionInfos(); addrProviders[i] = new ConnectionAddressProvider(connectionInfo); } getClientConfigHelper().validateGroupInfo(securityManager); for (ClusterTopologyChangedListener listener : listeners) { listener.serversUpdated(addrProviders); } }
if (reasonCode == NonPortableReason.UNDEFINED || config.getSpec(topLevelClass.getName()) != null) { reasonCode = NonPortableReason.SUPER_CLASS_NOT_INSTRUMENTED; Class class2Inspect = (Class) i.next(); if (config.isLogical(class2Inspect.getName())) { NonPortableReason reason = new NonPortableReason(topLevelClass, NonPortableReason.SUBCLASS_OF_LOGICALLY_MANAGED_CLASS);
private void validateGroupConfig() { final boolean toCheckTopology = TCPropertiesImpl.getProperties() .getBoolean(TCPropertiesConsts.L1_L2_CONFIG_VALIDATION_ENABLED); if (toCheckTopology) { try { this.config.validateGroupInfo(securityManager); } catch (final ConfigurationSetupException e) { CONSOLE_LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage(), e); } } }
private ReconnectConfig getReconnectPropertiesFromServer() { ReconnectConfig reconnectConfig = null; try { reconnectConfig = this.config.getL1ReconnectProperties(securityManager); } catch (ConfigurationSetupException e) { CONSOLE_LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage(), e); } return reconnectConfig; }
protected TCClass createTCClass(final Class clazz, final ClientObjectManager objectManager, final String className) { TCClass rv; if (className.equals(TCClassFactory.SERVER_MAP_CLASSNAME)) { rv = new ServerMapTCClassImpl(this.platformService, this.globalLocalCacheManager, this.remoteServerMapManager, this, objectManager, clazz, this.config.isUseNonDefaultConstructor(clazz)); } else { rv = new TCClassImpl(this, objectManager, clazz, this.config.isUseNonDefaultConstructor(clazz)); } return rv; }
protected TCClass createTCClass(final Class clazz, final ClientObjectManager objectManager, final String className) { TCClass rv; if (className.equals(TCClassFactory.SERVER_MAP_CLASSNAME)) { rv = new ServerMapTCClassImpl(this.manager, this.globalLocalCacheManager, this.remoteServerMapManager, this.fieldFactory, this, objectManager, clazz, getLogicalSuperClassWithDefaultConstructor(clazz), this.config.getLogicalExtendingClassName(className), this.config.isLogical(className), this.config.isUseNonDefaultConstructor(clazz), this.config.useResolveLockWhenClearing(clazz), this.config.getPostCreateMethodIfDefined(className), this.config.getPreCreateMethodIfDefined(className)); } else { rv = new TCClassImpl(this.fieldFactory, this, objectManager, clazz, getLogicalSuperClassWithDefaultConstructor(clazz), this.config.getLogicalExtendingClassName(className), this.config.isLogical(className), this.config.isUseNonDefaultConstructor(clazz), this.config.useResolveLockWhenClearing(clazz), this.config.getPostCreateMethodIfDefined(className), this.config.getPreCreateMethodIfDefined(className)); } return rv; }
final int faultCount = this.config.getFaultCount(); this.channel.getClientIDProvider(), this.classProvider, classFactory, objectFactory, this.config.getPortability(), globalLocalCacheManager, abortableOperationManager); this.globalLocalCacheManager.initializeTCObjectSelfStore(objectManager); teh); this.l1Management = this.dsoClientBuilder.createL1Management(teh, this.config.rawConfigText(), this); this.l1Management.start(createDedicatedMBeanServer);
@Override public TransparencyClassSpec getClassSpec(final String clazzName) { String name = clazzName.replace('/', '.'); return configuration.getSpec(name); }
private void validateSecurityConfig() { if (config.getSecurityInfo().isSecure() && securityManager == null) { throw new TCRuntimeException( "client configured as secure but was constructed without securityManager"); } if (!config.getSecurityInfo().isSecure() && securityManager != null) { throw new TCRuntimeException( "client not configured as secure but was constructed with securityManager"); } }
private void validateClientServerCompatibility() { try { this.config.validateClientServerCompatibility(securityManager, config.getSecurityInfo()); } catch (final ConfigurationSetupException e) { CONSOLE_LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage(), e); } }
@Override public void reloadConfiguration() throws ConfigurationSetupException { L1ConfigurationSetupManager newConfig = getClientConfigHelper().reloadServersConfiguration(); PreparedComponentsFromL2Connection connComp = new PreparedComponentsFromL2Connection(newConfig, securityManager); ConnectionInfoConfig[] connectionInfoItems = connComp.createConnectionInfoConfigItemByGroup(); ConnectionAddressProvider[] addrProviders = new ConnectionAddressProvider[connectionInfoItems.length]; for (int i = 0; i < connectionInfoItems.length; ++i) { ConnectionInfo[] connectionInfo = connectionInfoItems[i].getConnectionInfos(); addrProviders[i] = new ConnectionAddressProvider(connectionInfo); } getClientConfigHelper().validateGroupInfo(securityManager); for (ClusterTopologyChangedListener listener : listeners) { listener.serversUpdated(addrProviders); } }
private void validateGroupConfig() { final boolean toCheckTopology = TCPropertiesImpl.getProperties() .getBoolean(TCPropertiesConsts.L1_L2_CONFIG_VALIDATION_ENABLED); if (toCheckTopology) { try { this.config.validateGroupInfo(securityManager); } catch (final ConfigurationSetupException e) { CONSOLE_LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage(), e); } } }