Package org.lightview.presenter

Examples of org.lightview.presenter.ConnectionPoolBindings


    void updatePools(Snapshot snapshot) {
        List<ConnectionPool> connectionPools = snapshot.getPools();
        for (ConnectionPool connectionPool : connectionPools) {
            String jndiName = connectionPool.getJndiName();
            ConnectionPoolBindings bindings = ConnectionPoolBindings.from(connectionPool);
            ConnectionPoolBindings poolBindings = this.pools.get(jndiName);
            if (poolBindings != null) {
                poolBindings.update(connectionPool);
            } else {
                this.pools.put(jndiName, bindings);
            }
        }
    }
View Full Code Here


        this.successfulTXPerf.value().bind(this.dashboardPresenter.getCommitsPerSecond());
        this.failedTXPerf.value().bind(this.dashboardPresenter.getRollbacksPerSecond());

        this.dashboardPresenter.getPools().addListener(new MapChangeListener<String, ConnectionPoolBindings>() {
            public void onChanged(Change<? extends String, ? extends ConnectionPoolBindings> change) {
                ConnectionPoolBindings valueAdded = change.getValueAdded();
                if (valueAdded != null)
                    createPoolTab(valueAdded);
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.lightview.presenter.ConnectionPoolBindings

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.