public class ScheduleMonitor extends XMLRequest implements java.lang.Iterable<ScheduleMonitor.Task>
| Modifier and Type | Class and Description |
|---|---|
static class |
ScheduleMonitor.Task
This class represents a task in the Schedule monitor.
|
| Constructor and Description |
|---|
ScheduleMonitor(int runID)
Constructs a new
ScheduleMonitor request. |
ScheduleMonitor(int runID,
boolean active)
Deprecated.
This method is deprecated on 31-03-2016,
please set "src" using methods
setActivityScheduleMonitor, setArchiveScheduleMonitor, setExplorerScheduleMonitor
|
| 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 ScheduleMonitor.Task |
createTask(org.w3c.dom.Element task,
ConnectionAttributes session)
Creates a new ScheduleMonitor.Task in the Schedule monitor.
|
int |
getRunID()
Returns the run id of this schedule.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
java.lang.String |
getStartTime() |
int |
getStatusCode()
Returns the status of the task as integer.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
boolean |
isActive() |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
boolean |
isReloadNextTurnaround()
Returns
true if reload definition at period turnaround is enabled. |
java.util.Iterator<ScheduleMonitor.Task> |
iterator() |
void |
setActivityScheduleMonitor()
If this method is called the detail of a ScheduleMonitor in the activity list is returned.
|
void |
setArchiveScheduleMonitor()
If this method is called the detail of a ScheduleMonitor in the statistics is returned.
|
void |
setExplorerScheduleMonitor()
If this method is called the detail of a ScheduleMonitor in the Explorer is returned.
|
void |
setIncludeTaskProperties(boolean includeTaskProperties)
If this method is set to true, the properties of task are also returned
in the monitor.
|
int |
size()
Returns the number of tasks in this schedule.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification@Deprecated
public ScheduleMonitor(int runID,
boolean active)
ScheduleMonitor request.runID - RunIDactive - true if the monitor should be read from the activity window,public ScheduleMonitor(int runID)
ScheduleMonitor request.runID - RunIDprotected void createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
XMLRequestcreateRequest in class XMLRequestdoc - Document, used to create new Elementsrequest - Request Element - classes append information to this request elementsessionInfo - Information about the sessionprotected java.lang.String getSrc()
XMLRequestgetSrc in class XMLRequestpublic void setIncludeTaskProperties(boolean includeTaskProperties)
includeTaskProperties - true to include properties of each task in the response.public boolean isReloadNextTurnaround()
true if reload definition at period turnaround is enabled.public int getStatusCode()
-1 in case of an error. Possible return values are described in the status: AbstractTask.getStatusCode()public boolean isActive()
public java.lang.String getStartTime()
protected void handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session)
handleContent in class XMLRequestprotected ScheduleMonitor.Task createTask(org.w3c.dom.Element task, ConnectionAttributes session)
task - XML Element of the tasksession - Session Infopublic java.util.Iterator<ScheduleMonitor.Task> iterator()
iterator in interface java.lang.Iterable<ScheduleMonitor.Task>public int size()
protected boolean isAllowedInClientZero()
XMLRequestXMLRequest is allowed in client 0.
The default implementation returns false, subclasses may override.isAllowedInClientZero in class XMLRequesttrue if this request is allowed in client 0, false otherwisepublic int getRunID()
public void setActivityScheduleMonitor()
public void setArchiveScheduleMonitor()
public void setExplorerScheduleMonitor()