public class SystemWorkload extends XMLRequest implements java.lang.Iterable<WorkloadItem>
Constructor and Description |
---|
SystemWorkload()
Returns the data which is shown in the system overview as "Usage".
|
SystemWorkload(ServerListItem server)
Returns the usage for the specified server.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
WorkloadItem |
getTotalWorkload()
Returns a
WorkloadItem which represents the total system workload. |
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
java.util.Iterator<WorkloadItem> |
iterator()
Returns an Iterator which can be used to step through the
WorkloadItem . |
int |
size()
Returns the total number of clients in the workload list.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public SystemWorkload()
public SystemWorkload(ServerListItem server)
server
- ServerListItem which was returned in the ServerList request.protected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
public java.util.Iterator<WorkloadItem> iterator()
WorkloadItem
.
If this class does not contain a workload list this method returns null
iterator
in interface java.lang.Iterable<WorkloadItem>
WorkloadItem
or null
in case of an errorprotected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwisepublic WorkloadItem getTotalWorkload()
WorkloadItem
which represents the total system workload.WorkloadItem
of all clientspublic int size()
WorkloadItem