org.apache.stratos.lb.agent
Class LoadBalanceAgentService
java.lang.Object
org.apache.stratos.lb.agent.LoadBalanceAgentService
public class LoadBalanceAgentService
- extends Object
Agent to get the system properties of the instances. Hence will be used in auto scaling, and
also potentially in load balancing. Instances will be scaling up and down based on these params.
|
Method Summary |
double |
getLoadAverage()
gets the load average of the system |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadBalanceAgentService
public LoadBalanceAgentService()
getLoadAverage
public double getLoadAverage()
- gets the load average of the system
- Returns:
- load average. Returns zero if the load average couldn't be read.
Zero is treated as load-average not read, in the relevant places and ignored in the
load balancer and autoscalar algorithms appropriately.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.