Package de.zalando.sprocwrapper.dsprovider

Examples of de.zalando.sprocwrapper.dsprovider.DataSourceProvider


// TODO: why must every gatherer has its own connection? what is the cost of create a connection in comparison to a
// persistent connection?
        String url = "jdbc:postgresql://" + host.name + ":" + host.port + "/" + host.dbname;
        DataSource ds = new DriverManagerDataSource(url, host.user, host.password);

        DataSourceProvider datasource = new SingleDataSourceProvider(ds);
        this.gatherService = new GatherSprocServiceImpl(datasource);
    }
View Full Code Here


    /**
     * initialize the sproc service for writing to the pgobserver database.
     */
    private void initWriterService() {
        DataSourceProvider ds = new SingleDataSourceProvider(DBPools.getDatasource());
        this.writerService = new PgoWriterSprocServiceImpl(ds);
    }
View Full Code Here

TOP

Related Classes of de.zalando.sprocwrapper.dsprovider.DataSourceProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.