public class GetLastRuntimes extends XMLRequest
Constructor and Description |
---|
GetLastRuntimes(int ohIdnr)
Creates a new request to get the last 25 RRTs and ERTs.
|
GetLastRuntimes(UC4ObjectName name)
Creates a new request to get the last 25 RRTs and ERTs.
|
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.
|
java.lang.Long |
getEstimatedRuntime(int runNumber)
This method returns one of 25 estimated runtimes measured in seconds.
|
java.lang.Long |
getRealRuntime(int runNumber)
This method returns one of 25 real runtimes measured in seconds.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
java.util.Iterator<java.lang.Long> |
lastEstimatedRuntimes()
This method provides the last 25 estimated runtimes measured in seconds.
|
java.util.Iterator<java.lang.Long> |
lastRealRuntimes()
This method provides the last 25 real runtimes measured in seconds.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public GetLastRuntimes(UC4ObjectName name)
name
- Name of the UC4 Objectpublic GetLastRuntimes(int ohIdnr)
ohIdnr
- OH_Idnrprotected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected 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
otherwiseprotected 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<java.lang.Long> lastRealRuntimes()
public java.lang.Long getRealRuntime(int runNumber)
runNumber
- 0 = youngest last run, 24 = oldest last runpublic java.util.Iterator<java.lang.Long> lastEstimatedRuntimes()
public java.lang.Long getEstimatedRuntime(int runNumber)
runNumber
- 0 = youngest last run, 24 = oldest last run