private static ConnectionInfo[] getConnectionsFromL1Config(final L1ConfigurationSetupManager configSetupManager) { L2Data[] l2s = null; // synchronized here as same issue of MNK-1984. ArrayIndexOutOfBoundsException in multi threaded environment due to // apache bug https://issues.apache.org/jira/browse/XMLBEANS-328 synchronized (configSetupManager) { l2s = configSetupManager.l2Config().l2Data(); } // clean groupID which is supported to get from L2. for (L2Data l2 : l2s) { l2.setGroupId(0); } ConnectionInfoConfig connectInfo = new ConnectionInfoConfig(l2s, configSetupManager.getSecurityInfo()); return connectInfo.getConnectionInfos(); }
private static ConnectionInfo[] getConnectionsFromL1Config(final L1ConfigurationSetupManager configSetupManager) { L2Data[] l2s = null; // synchronized here as same issue of MNK-1984. ArrayIndexOutOfBoundsException in multi threaded environment due to // apache bug https://issues.apache.org/jira/browse/XMLBEANS-328 synchronized (configSetupManager) { l2s = configSetupManager.l2Config().l2Data(); } // clean groupID which is supported to get from L2. for (L2Data l2 : l2s) { l2.setGroupId(0); } ConnectionInfoConfig connectInfo = new ConnectionInfoConfig(l2s, configSetupManager.getSecurityInfo()); return connectInfo.getConnectionInfos(); }
private static ConnectionInfo[] getConnectionsFromL1Config(final L1ConfigurationSetupManager configSetupManager) { L2Data[] l2s = null; // synchronized here as same issue of MNK-1984. ArrayIndexOutOfBoundsException in multi threaded environment due to // apache bug https://issues.apache.org/jira/browse/XMLBEANS-328 synchronized (configSetupManager) { l2s = configSetupManager.l2Config().l2Data(); } // clean groupID which is supported to get from L2. for (L2Data l2 : l2s) { l2.setGroupId(0); } ConnectionInfoConfig connectInfo = new ConnectionInfoConfig(l2s, configSetupManager.getSecurityInfo()); return connectInfo.getConnectionInfos(); }
public ConnectionInfoConfig createConnectionInfoConfigItem() { L2Data[] l2s = this.config.l2Config().l2Data(); for (L2Data l2 : l2s) { l2.setGroupId(getGroupID(l2.getGroupName())); } return new ConnectionInfoConfig(l2s, config.getSecurityInfo()); }
public ConnectionInfoConfig createConnectionInfoConfigItem() { L2Data[] l2s = this.config.l2Config().l2Data(); for (L2Data l2 : l2s) { l2.setGroupId(getGroupID(l2.getGroupName())); } return new ConnectionInfoConfig(l2s, config.getSecurityInfo()); }
public ConnectionInfoConfig createConnectionInfoConfigItem() { L2Data[] l2s = this.config.l2Config().l2Data(); for (L2Data l2 : l2s) { l2.setGroupId(getGroupID(l2.getGroupName())); } return new ConnectionInfoConfig(l2s, config.getSecurityInfo()); }
public ConnectionInfoConfig[] createConnectionInfoConfigItemByGroup() { /** * this block is synchronized because of the apache bug https://issues.apache.org/jira/browse/XMLBEANS-328. In multi * threaded environment we used to get ArrayIndexOutOfBoundsException See MNK-1984, 2010, 2013 for more details */ synchronized (this.config) { this.config.l2Config().l2Data(); } L2Data[][] l2DataByGroup = this.config.l2Config().getL2DataByGroup(); // set GroupID assigned by L2 // notes: this.config.l2config() has called ActiveCoordinatorHelper.generateGroupNames(), so that to have a right // group name to work with. for (L2Data[] group : l2DataByGroup) { for (L2Data l2 : group) { l2.setGroupId(getGroupID(l2.getGroupName())); } } ConnectionInfoConfig[] items = new ConnectionInfoConfig[l2DataByGroup.length]; for (int i = 0; i < l2DataByGroup.length; i++) { items[i] = new ConnectionInfoConfig(l2DataByGroup[i], config.getSecurityInfo()); } return items; }
public ConnectionInfoConfig[] createConnectionInfoConfigItemByGroup() { /** * this block is synchronized because of the apache bug https://issues.apache.org/jira/browse/XMLBEANS-328. In multi * threaded environment we used to get ArrayIndexOutOfBoundsException See MNK-1984, 2010, 2013 for more details */ synchronized (this.config) { this.config.l2Config().l2Data(); } L2Data[][] l2DataByGroup = this.config.l2Config().getL2DataByGroup(); // set GroupID assigned by L2 // notes: this.config.l2config() has called ActiveCoordinatorHelper.generateGroupNames(), so that to have a right // group name to work with. for (L2Data[] group : l2DataByGroup) { for (L2Data l2 : group) { l2.setGroupId(getGroupID(l2.getGroupName())); } } ConnectionInfoConfig[] items = new ConnectionInfoConfig[l2DataByGroup.length]; for (int i = 0; i < l2DataByGroup.length; i++) { items[i] = new ConnectionInfoConfig(l2DataByGroup[i], config.getSecurityInfo()); } return items; }
public ConnectionInfoConfig[] createConnectionInfoConfigItemByGroup() { /** * this block is synchronized because of the apache bug https://issues.apache.org/jira/browse/XMLBEANS-328. In multi * threaded environment we used to get ArrayIndexOutOfBoundsException See MNK-1984, 2010, 2013 for more details */ synchronized (this.config) { this.config.l2Config().l2Data(); } L2Data[][] l2DataByGroup = this.config.l2Config().getL2DataByGroup(); // set GroupID assigned by L2 // notes: this.config.l2config() has called ActiveCoordinatorHelper.generateGroupNames(), so that to have a right // group name to work with. for (L2Data[] group : l2DataByGroup) { for (L2Data l2 : group) { l2.setGroupId(getGroupID(l2.getGroupName())); } } ConnectionInfoConfig[] items = new ConnectionInfoConfig[l2DataByGroup.length]; for (int i = 0; i < l2DataByGroup.length; i++) { items[i] = new ConnectionInfoConfig(l2DataByGroup[i], config.getSecurityInfo()); } return items; }