Package org.apache.geode.management
Class ServerLoadData
java.lang.Object
org.apache.geode.management.ServerLoadData
Composite data type used to distribute server load information.
- Since:
- GemFire 7.0
-
Constructor Summary
ConstructorsConstructorDescriptionServerLoadData(float connectionLoad, float subscriberLoad, float loadPerConnection, float loadPerSubscriber) This constructor is to be used by internal JMX framework only. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the load on the server due to client to server connections.floatReturns an estimate of how much load each new connection will add to this server.floatReturns an estimate of the much load each new subscriber will add to this server.floatReturns the load on the server due to subscription connections.toString()String representation of ServerLoadData
-
Constructor Details
-
ServerLoadData
@ConstructorProperties({"connectionLoad","subscriberLoad","loadPerConnection","loadPerSubscriber"}) public ServerLoadData(float connectionLoad, float subscriberLoad, float loadPerConnection, float loadPerSubscriber) This constructor is to be used by internal JMX framework only. User should not try to create an instance of this class.- Parameters:
connectionLoad- the load on the server due to client to server connectionssubscriberLoad- the load on the server due to subscription connectionsloadPerConnection- how much load each new connection will add to this serverloadPerSubscriber- how much load each new subscription will add to this server
-
-
Method Details
-
getConnectionLoad
public float getConnectionLoad()Returns the load on the server due to client to server connections.- Returns:
- the load on the server due to client to server connections
-
getSubscriberLoad
public float getSubscriberLoad()Returns the load on the server due to subscription connections.- Returns:
- the load on the server due to subscription connections
-
getLoadPerConnection
public float getLoadPerConnection()Returns an estimate of how much load each new connection will add to this server. The Locator use this information to estimate the load on the server before it receives a new load snapshot.- Returns:
- an estimate of how much load each new connection will add to this server
-
getLoadPerSubscriber
public float getLoadPerSubscriber()Returns an estimate of the much load each new subscriber will add to this server. The Locator uses this information to estimate the load on the server before it receives a new load snapshot.- Returns:
- an estimate of the much load each new subscriber will add to this server
-
toString
String representation of ServerLoadData
-