@Override public void configure(TestElement te) { super.configure(te); DbMonCollector dmte = (DbMonCollector) te; JMeterProperty dbmonValues = dmte.getSamplerSettings(); if (!(dbmonValues instanceof NullProperty)) { JMeterPluginsUtils.collectionPropertyToTableModelRows((CollectionProperty) dbmonValues, tableModel, columnClasses); } else { log.warn("Received null property instead of collection"); } }
@Override public void configure(TestElement te) { super.configure(te); DbMonCollector dmte = (DbMonCollector) te; JMeterProperty dbmonValues = dmte.getSamplerSettings(); if (!(dbmonValues instanceof NullProperty)) { JMeterPluginsUtils.collectionPropertyToTableModelRows((CollectionProperty) dbmonValues, tableModel, columnClasses); } else { log.warn("Received null property instead of collection"); } }
private void initiateConnectors() throws SQLException { JMeterProperty prop = getSamplerSettings(); dbMonSamplers.clear(); if (!(prop instanceof CollectionProperty)) { log.warn("Got unexpected property: " + prop); return; } CollectionProperty rows = (CollectionProperty) prop; for (int i = 0; i < rows.size(); i++) { ArrayList<Object> row = (ArrayList<Object>) rows.get(i).getObjectValue(); String connectionPool = ((JMeterProperty) row.get(0)).getStringValue(); String label = ((JMeterProperty) row.get(1)).getStringValue(); boolean isDelta = ((JMeterProperty) row.get(2)).getBooleanValue(); String sql = ((JMeterProperty) row.get(3)).getStringValue(); initiateConnector(connectionPool, label, isDelta, sql); } }
private void initiateConnectors() throws SQLException { JMeterProperty prop = getSamplerSettings(); dbMonSamplers.clear(); if (!(prop instanceof CollectionProperty)) { log.warn("Got unexpected property: " + prop); return; } CollectionProperty rows = (CollectionProperty) prop; for (int i = 0; i < rows.size(); i++) { ArrayList<Object> row = (ArrayList<Object>) rows.get(i).getObjectValue(); String connectionPool = ((JMeterProperty) row.get(0)).getStringValue(); String label = ((JMeterProperty) row.get(1)).getStringValue(); boolean isDelta = ((JMeterProperty) row.get(2)).getBooleanValue(); String sql = ((JMeterProperty) row.get(3)).getStringValue(); initiateConnector(connectionPool, label, isDelta, sql); } }