Search in sources :

Example 1 with ServerMetricsImpl

use of org.apache.geode.cache.server.internal.ServerMetricsImpl in project geode by apache.

the class CacheServerBridge method fetchLoadProbe.

/** Get the load probe for this cache server **/
public ServerLoadData fetchLoadProbe() {
    ServerLoadProbe probe = cacheServer.getLoadProbe();
    ServerLoad load = probe.getLoad(new ServerMetricsImpl(cacheServer.getMaxConnections()));
    ServerLoadData data = new ServerLoadData(load.getConnectionLoad(), load.getSubscriptionConnectionLoad(), load.getLoadPerConnection(), load.getLoadPerSubscriptionConnection());
    return data;
}
Also used : ServerLoad(org.apache.geode.cache.server.ServerLoad) ServerLoadData(org.apache.geode.management.ServerLoadData) ServerLoadProbe(org.apache.geode.cache.server.ServerLoadProbe) ServerMetricsImpl(org.apache.geode.cache.server.internal.ServerMetricsImpl)

Aggregations

ServerLoad (org.apache.geode.cache.server.ServerLoad)1 ServerLoadProbe (org.apache.geode.cache.server.ServerLoadProbe)1 ServerMetricsImpl (org.apache.geode.cache.server.internal.ServerMetricsImpl)1 ServerLoadData (org.apache.geode.management.ServerLoadData)1