Examples of SnapshotDBHelper


Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

//          archiveDS = (DataSource)((NestedWritableContext)ic.lookup("jms:conn")).lookup("jdbc/ArchiveDS");
        } catch(Exception e) {
            log.error(e.getMessage());
            e.printStackTrace();
        }
        snapshotDBHelper = new SnapshotDBHelper(activeDS, archiveDS);
    }
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

    @PostConstruct
    private void init() {
        // set up SnaphotDBHelper with the necessary data sources
        // Note: do not put this in the constructor...datasources are not injected by then
        snapshotDBHelper = new SnapshotDBHelper(activeDS, archiveDS);
    }
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

//          archiveDS = (DataSource)((NestedWritableContext)ic.lookup("jms:conn")).lookup("jdbc/ArchiveDS");
        } catch(Exception e) {
            log.error(e.getMessage());
            e.printStackTrace();
        }
        snapshotDBHelper = new SnapshotDBHelper(activeDS, archiveDS);
    }
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

    @PostConstruct
    private void init() {
        // set up SnaphotDBHelper with the necessary data sources
        // Note: do not put this in the constructor...datasources are not injected by then
        snapshotDBHelper = new SnapshotDBHelper(activeDS, archiveDS);
    }
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

                HashMap<String, Long> stats = (HashMap<String, Long>)mrc.getStats(mbeanName);
                aggregateStats.put(mbeanName, stats);
            }
           
            // store the data in a DB
            (new SnapshotDBHelper()).addSnapshotToDB(aggregateStats);
           
            for(Iterator itt = aggregateStats.keySet().iterator(); itt.hasNext(); ) {
                String mbean = (String)itt.next();
                HashMap<String, Long> stats = aggregateStats.get(mbean);
                log.info(mbean);
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

    @PostConstruct
    private void init() {
        // set up SnaphotDBHelper with the necessary data sources
        // Note: do not put this in the constructor...datasources are not injected by then
        snapshotDBHelper = new SnapshotDBHelper(activeDS, archiveDS);
    }
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

                HashMap<String, Long> stats = mrc.getStats(mbeanName);
                aggregateStats.put(mbeanName, stats);
            }
           
            // store the data in a DB
            (new SnapshotDBHelper()).addSnapshotToDB(aggregateStats);

            for (String mbean : aggregateStats.keySet()) {
                HashMap<String, Long> stats = aggregateStats.get(mbean);
                log.info(mbean);
                for (String key : stats.keySet()) {
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

            activeDS = (DataSource)ic.lookup("jca:/org.apache.geronimo.plugins.monitoring/agent-ds/JCAConnectionManager/jdbc/ActiveDS");
            archiveDS = (DataSource)ic.lookup("jca:/org.apache.geronimo.plugins.monitoring/agent-ds/JCAConnectionManager/jdbc/ArchiveDS");
        } catch(Exception e) {
            log.error(e.getMessage());
        }
        snapshotDBHelper = new SnapshotDBHelper(activeDS, archiveDS);
    }
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

                HashMap<String, Long> stats = mrc.getStats(mbeanName);
                aggregateStats.put(mbeanName, stats);
            }
           
            // store the data in a DB
            (new SnapshotDBHelper()).addSnapshotToDB(aggregateStats);

            for (String mbean : aggregateStats.keySet()) {
                HashMap<String, Long> stats = aggregateStats.get(mbean);
                log.info(mbean);
                for (String key : stats.keySet()) {
View Full Code Here

Examples of org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper

//          archiveDS = (DataSource)((NestedWritableContext)ic.lookup("jms:conn")).lookup("jdbc/ArchiveDS");
        } catch(Exception e) {
            log.error(e.getMessage());
            e.printStackTrace();
        }
        snapshotDBHelper = new SnapshotDBHelper(activeDS, archiveDS);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.