use of org.apache.geode.management.ServerLoadData 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;
}
Aggregations