Examples of PoolStatistics


Examples of org.lightview.business.pool.entity.PoolStatistics

            }
        }
    }

    void fetchValues(long id) {
        PoolStatistics poolStats = poolMonitoring.getPoolStats(this.applicationName, this.ejbName);
        if(poolStats.isValid())
            this.onNewEntry(id, extractor.apply(poolStats));
    }
View Full Code Here

Examples of org.lightview.business.pool.entity.PoolStatistics

        when(this.cut.model.serverUriProperty()).thenReturn(property);
    }

    @Test
    public void currentThreadsWaiting() {
        PoolStatistics poolStats = this.cut.getPoolStats("lightfish", "ConfigurationStore");
        Assert.assertNotNull(poolStats.currentThreadsWaitingProperty());
    }
View Full Code Here

Examples of org.lightview.business.pool.entity.PoolStatistics

        Assert.assertNotNull(poolStats.currentThreadsWaitingProperty());
    }

    @Test
    public void threadsWaitingHighwatermark() {
        PoolStatistics poolStats = this.cut.getPoolStats("lightfish", "ConfigurationStore");
        Assert.assertNotNull(poolStats.threadsWaitingHighwatermarkProperty());
    }
View Full Code Here

Examples of org.lightview.business.pool.entity.PoolStatistics

        Assert.assertNotNull(poolStats.threadsWaitingHighwatermarkProperty());
    }

    @Test
    public void totalBeansCreated() {
        PoolStatistics poolStats = this.cut.getPoolStats("lightfish", "ConfigurationStore");
        Assert.assertNotNull(poolStats.totalBeansCreatedProperty());
    }
View Full Code Here

Examples of org.lightview.business.pool.entity.PoolStatistics

        Assert.assertNotNull(poolStats.totalBeansCreatedProperty());
    }

    @Test
    public void totalBeansDestroyed() {
        PoolStatistics poolStats = this.cut.getPoolStats("lightfish", "ConfigurationStore");
        Assert.assertNotNull(poolStats.totalBeansDestroyedProperty());
    }
View Full Code Here

Examples of org.lightview.business.pool.entity.PoolStatistics

        Assert.assertNotNull(poolStats.totalBeansDestroyedProperty());
    }

    @Test
    public void totalBeansDestroyedForSingleton() {
        PoolStatistics poolStats = this.cut.getPoolStats("lightfish", "Configurator");
        Assert.assertThat(poolStats.getTotalBeansDestroyed(), is(-1));
    }
View Full Code Here

Examples of org.lightview.business.pool.entity.PoolStatistics

        Assert.assertThat(poolStats.getTotalBeansDestroyed(), is(-1));
    }

    @Test
    public void currentThreadsWaitingForSingleton() {
        PoolStatistics poolStats = this.cut.getPoolStats("lightfish", "Configurator");
        Assert.assertThat(poolStats.getCurrentThreadsWaiting(), is(-1));
    }
View Full Code Here

Examples of org.lightview.business.pool.entity.PoolStatistics

                request(MediaType.APPLICATION_JSON).get(Response.class);

        if (response.getStatus() == 404) {
            return null;
        }
        return new PoolStatistics(response.readEntity(JsonObject.class));
    }
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.