Package com.uc4.api.systemoverview
Class WorkloadItem
java.lang.Object
com.uc4.api.systemoverview.WorkloadItem
This class describes one row in the System Workload Table.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkloadItem
(Element row) Constructs aWorkloadItem
unsing the specifiedElement
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
Returns the average load of this client in percent.int
Returns the number of the client or -1 if thisWorkloadItem
represents the workload of all clients.float
getLoadAt
(int hour) Returns the workload of this client in percent at the specified time.int
hashCode()
toString()
-
Constructor Details
-
WorkloadItem
Constructs aWorkloadItem
unsing the specifiedElement
.- Parameters:
row
- Element
-
-
Method Details
-
getAverageLoad
public float getAverageLoad()Returns the average load of this client in percent.- Returns:
- average load
-
getClient
public int getClient()Returns the number of the client or -1 if thisWorkloadItem
represents the workload of all clients.- Returns:
- client
-
getLoadAt
public float getLoadAt(int hour) Returns the workload of this client in percent at the specified time.- Parameters:
hour
- valid: 1 - 24- Returns:
- workload in percent or -1 if no data exists
-
equals
-
hashCode
public int hashCode() -
toString
-