@Test public void testGetConnection() { assertThat(processor.getConnection()).isEqualTo(connection); }
@Override public Connection getConnection() { final EtmPoint point = MONITOR.createPoint(getClass().getName() + ": getConnection()"); try { return pool.getConnection(product.getUsername(), product.getPassword(), product.getServerAddress()); } finally { point.collect(); } }
UserPassSftpProcessor extends JschSftpProcessor { @Override public Connection getConnection() { final EtmPoint point = MONITOR.createPoint(getClass().getName() + ": getConnection()"); try { return pool.getConnection(product.getUsername(), product.getPassword(), product.getServerAddress()); } finally { point.collect(); } } }
UserPassSftpProcessor extends JschSftpProcessor { @Override public Connection getConnection() { final EtmPoint point = MONITOR.createPoint(getClass().getName() + ": getConnection()"); try { return pool.getConnection(product.getUsername(), product.getPassword(), product.getServerAddress()); } finally { point.collect(); } } UserPassSftpProcessor(final UserPassProduct product, final ConnectionPool pool); }
UserPassSftpProcessor extends JschSftpProcessor { @Override public Connection getConnection() { final EtmPoint point = MONITOR.createPoint(getClass().getName() + ": getConnection()"); try { return pool.getConnection(product.getUsername(), product.getPassword(), product.getServerAddress()); } finally { point.collect(); } } UserPassSftpProcessor(final UserPassProduct product, final ConnectionPool pool); @Override Connection getConnection(); }
UserPassSftpProcessor extends JschSftpProcessor { @Override public Connection getConnection() { final EtmPoint point = MONITOR.createPoint(getClass().getName() + ": getConnection()"); try { return pool.getConnection(product.getUsername(), product.getPassword(), product.getServerAddress()); } finally { point.collect(); } } UserPassSftpProcessor(final UserPassProduct product, final ConnectionPool pool); @Override Connection getConnection();  }