Package com.uc4.api.systemoverview
Class WorkloadItem
- java.lang.Object
-
- com.uc4.api.systemoverview.WorkloadItem
-
public class WorkloadItem extends java.lang.Object
This class describes one row in the System Workload Table.
-
-
Constructor Summary
Constructors Constructor Description WorkloadItem(org.w3c.dom.Element row)
Constructs aWorkloadItem
unsing the specifiedElement
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
float
getAverageLoad()
Returns the average load of this client in percent.int
getClient()
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()
java.lang.String
toString()
-
-
-
Method Detail
-
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
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-