Examples of AffinityGroupFinderStats


Examples of com.sun.sgs.impl.service.nodemap.affinity.AffinityGroupFinderStats

        // Export ourself.
        exporter = new Exporter<LPAServer>(LPAServer.class);
        exporter.export(this, SERVER_EXPORT_NAME, requestedPort);

        // Create our JMX MBean
        stats = new AffinityGroupFinderStats(this, col, MAX_ITERATIONS);
        try {
            col.registerMBean(stats, AffinityGroupFinderMXBean.MXBEAN_NAME);
        } catch (JMException e) {
            // Continue on if we couldn't register this bean, although
            // it's probably a very bad sign
View Full Code Here

Examples of com.sun.sgs.impl.service.nodemap.affinity.AffinityGroupFinderStats

      throw new NullPointerException("null builder");
  }
        this.builder = builder;
        if (stats == null) {
            // Create our JMX MBean
            stats = new AffinityGroupFinderStats(this, col, MAX_ITERATIONS);
            try {
                col.registerMBean(stats, AffinityGroupFinderMXBean.MXBEAN_NAME);
            } catch (JMException e) {
                // Continue on if we couldn't register this bean, although
                // it's probably a very bad sign
View Full Code Here

Examples of com.sun.sgs.impl.service.nodemap.affinity.AffinityGroupFinderStats

        col.getConsumer(AffinityGroupFinderStats.CONS_NAME).
                setProfileLevel(ProfileLevel.MAX);
        graphDriver.enable();
        Thread.sleep(5500);
      
        AffinityGroupFinderStats stats = (AffinityGroupFinderStats)
            col.getRegisteredMBean(AffinityGroupFinderMXBean.MXBEAN_NAME);
        Assert.assertNotNull(stats);
        Assert.assertTrue("stats should be updated", stats.getNumberRuns() > 0);
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.nodemap.affinity.AffinityGroupFinderStats

        // can return a different type from findAffinityGroups.
        builder = new SingleGraphBuilder(properties, systemRegistry,
                                         txnProxy, false);
        // Create our group finder and graph builder JMX MBeans
        AffinityGroupFinderStats stats =
                new AffinityGroupFinderStats(this, col, -1);
        builderStats = new AffinityGraphBuilderStats(col,
                                                     builder.getAffinityGraph(),
                                                     periodCount, snapshot);
        // We must set the stats before exporting ourself!
        builder.setStats(builderStats);
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.