@Override public String getPreCreateMethodIfDefined(final String className) { TransparencyClassSpec spec = getSpec(className); if (spec != null) { return spec.getPreCreateMethod(); } else { return null; } }
@Override public synchronized ReconnectConfig getL1ReconnectProperties(final PwProvider securityManager) throws ConfigurationSetupException { if (l1ReconnectConfig == null) { setupL1ReconnectProperties(securityManager); } return l1ReconnectConfig; }
@Override public TransparencyClassSpec getOrCreateSpec(final String className) { return basicGetOrCreateSpec(className, null, true); }
public StandardDSOClientConfigHelperImpl(final L1ConfigurationSetupManager configSetupManager) throws ConfigurationSetupException { this.portability = new PortabilityImpl(this); this.configSetupManager = configSetupManager; try { doPreInstrumentedAutoconfig(); doAutoconfig(); } catch (Exception e) { throw new ConfigurationSetupException(e.getLocalizedMessage(), e); } }
ConnectionInfo[] connectionInfo = connectionInfoItems[i].getConnectionInfos(); for (int j = 0; j < connectionInfo.length; j++) { ConnectionInfo connectionIn = new ConnectionInfo(getIpAddressOfServer(connectionInfo[j].getHostname()), connectionInfo[j].getPort(), i * j + j, ServerInfo[] serverInfos = grpArray[i].getServerInfoArray(); for (int j = 0; j < serverInfos.length; j++) { ConnectionInfo connectionIn = new ConnectionInfo(getIpAddressOfServer(serverInfos[j].getName()), serverInfos[j] builder.append("The number of servers specified in the client and server configs are different. "); dumpConnInfo(builder, "ConnInfo from L1", connInfoFromL1); dumpConnInfo(builder, "ConnInfo from L2", connInfoFromL2); errMsg += builder.toString(); throw new ConfigurationSetupException(errMsg); return; } else { logConfigMismatchAndThrowException(connInfoFromL1, connInfoFromL2, errMsg); logConfigMismatchAndThrowException(connInfoFromL1, connInfoFromL2, errMsg);
private TransparencyClassSpec basicGetOrCreateSpec(final String className, final String applicator, final boolean rememberSpec) { synchronized (specLock) { TransparencyClassSpec spec = getSpec(className); if (spec == null) { if (applicator != null) { spec = new TransparencyClassSpecImpl(className, this, applicator); } else { spec = new TransparencyClassSpecImpl(className, this); } if (rememberSpec) { addSpec(spec); } } return spec; } }
public void init() throws ConfigurationSetupException { StandardConfigurationSetupManagerFactory factory = new StandardConfigurationSetupManagerFactory( (String[]) null, StandardConfigurationSetupManagerFactory.ConfigMode.EXPRESS_L1, new FatalIllegalConfigurationChangeHandler(), configSpec, securityManager); L1ConfigurationSetupManager config = factory.getL1TVSConfigurationSetupManager(securityInfo); config.setupLogging(); PreparedComponentsFromL2Connection l2Connection; try { l2Connection = validateMakeL2Connection(config, securityManager); } catch (Exception e) { throw new ConfigurationSetupException(e.getLocalizedMessage(), e); } DSOClientConfigHelper configHelperLocal = new StandardDSOClientConfigHelperImpl(config); this.configHelper = configHelperLocal; manager.set(configHelper, l2Connection); try { startToolkitConfigurator(); } catch (Exception e) { throw new ConfigurationSetupException(e.getLocalizedMessage(), e); } manager.init(); }
ConnectionInfo[] connectionInfo = connectionInfoItems[i].getConnectionInfos(); for (int j = 0; j < connectionInfo.length; j++) { ConnectionInfo connectionIn = new ConnectionInfo(getIpAddressOfServer(connectionInfo[j].getHostname()), connectionInfo[j].getPort(), i * j + j, ServerInfo[] serverInfos = grpArray[i].getServerInfoArray(); for (int j = 0; j < serverInfos.length; j++) { ConnectionInfo connectionIn = new ConnectionInfo(getIpAddressOfServer(serverInfos[j].getName()), serverInfos[j] builder.append("The number of servers specified in the client and server configs are different. "); dumpConnInfo(builder, "ConnInfo from L1", connInfoFromL1); dumpConnInfo(builder, "ConnInfo from L2", connInfoFromL2); errMsg += builder.toString(); throw new ConfigurationSetupException(errMsg); return; } else { logConfigMismatchAndThrowException(connInfoFromL1, connInfoFromL2, errMsg); logConfigMismatchAndThrowException(connInfoFromL1, connInfoFromL2, errMsg);
private TransparencyClassSpec basicGetOrCreateSpec(final String className, final String applicator, final boolean rememberSpec) { synchronized (specLock) { TransparencyClassSpec spec = getSpec(className); if (spec == null) { if (applicator != null) { spec = new TransparencyClassSpecImpl(className, this, applicator); } else { spec = new TransparencyClassSpecImpl(className, this); } if (rememberSpec) { addSpec(spec); } } return spec; } }
public StandardDSOClientConfigHelperImpl(final L1ConfigurationSetupManager configSetupManager) throws ConfigurationSetupException { this.portability = new PortabilityImpl(this); this.configSetupManager = configSetupManager; try { doPreInstrumentedAutoconfig(); doAutoconfig(); } catch (Exception e) { throw new ConfigurationSetupException(e.getLocalizedMessage(), e); } }
public void init() throws ConfigurationSetupException { StandardConfigurationSetupManagerFactory factory = new StandardConfigurationSetupManagerFactory( (String[]) null, StandardConfigurationSetupManagerFactory.ConfigMode.EXPRESS_L1, new FatalIllegalConfigurationChangeHandler(), configSpec, securityManager); L1ConfigurationSetupManager config = factory.getL1TVSConfigurationSetupManager(securityInfo); config.setupLogging(); PreparedComponentsFromL2Connection l2Connection; try { l2Connection = validateMakeL2Connection(config, securityManager); } catch (Exception e) { throw new ConfigurationSetupException(e.getLocalizedMessage(), e); } DSOClientConfigHelper configHelperLocal = new StandardDSOClientConfigHelperImpl(config); this.configHelper = configHelperLocal; manager.set(configHelper, l2Connection); try { startToolkitConfigurator(); } catch (Exception e) { throw new ConfigurationSetupException(e.getLocalizedMessage(), e); } manager.init(); }
ConnectionInfo[] connectionInfo = connectionInfoItems[i].getConnectionInfos(); for (int j = 0; j < connectionInfo.length; j++) { ConnectionInfo connectionIn = new ConnectionInfo(getIpAddressOfServer(connectionInfo[j].getHostname()), connectionInfo[j].getPort(), i * j + j, ServerInfo[] serverInfos = grpArray[i].getServerInfoArray(); for (int j = 0; j < serverInfos.length; j++) { ConnectionInfo connectionIn = new ConnectionInfo(getIpAddressOfServer(serverInfos[j].getName()), serverInfos[j] builder.append("The number of servers specified in the client and server configs are different. "); dumpConnInfo(builder, "ConnInfo from L1", connInfoFromL1); dumpConnInfo(builder, "ConnInfo from L2", connInfoFromL2); errMsg += builder.toString(); throw new ConfigurationSetupException(errMsg); return; } else { logConfigMismatchAndThrowException(connInfoFromL1, connInfoFromL2, errMsg); logConfigMismatchAndThrowException(connInfoFromL1, connInfoFromL2, errMsg);
@Override public boolean isLogical(final String className) { TransparencyClassSpec spec = getSpec(className); return spec != null && spec.isLogical(); }
@Override public synchronized ReconnectConfig getL1ReconnectProperties(final PwProvider securityManager) throws ConfigurationSetupException { if (l1ReconnectConfig == null) { setupL1ReconnectProperties(securityManager); } return l1ReconnectConfig; }
final DSOClientConfigHelper configHelper = new StandardDSOClientConfigHelperImpl(config);
@Override public TransparencyClassSpec getOrCreateSpec(final String className) { return basicGetOrCreateSpec(className, null, true); }
@Override public String getPreCreateMethodIfDefined(final String className) { TransparencyClassSpec spec = getSpec(className); if (spec != null) { return spec.getPreCreateMethod(); } else { return null; } }
@Override public synchronized ReconnectConfig getL1ReconnectProperties(final PwProvider securityManager) throws ConfigurationSetupException { if (l1ReconnectConfig == null) { setupL1ReconnectProperties(securityManager); } return l1ReconnectConfig; }
@Override public TransparencyClassSpec getOrCreateSpec(final String className, final String applicator) { if (applicator == null) throw new AssertionError(); return basicGetOrCreateSpec(className, applicator, true); }
@Override public String getPostCreateMethodIfDefined(final String className) { TransparencyClassSpec spec = getSpec(className); if (spec != null) { return spec.getPostCreateMethod(); } else { return null; } }