Package com.uc4.api.objects
Class Schedule
- java.lang.Object
-
- com.uc4.api.objects.UC4Object
-
- com.uc4.api.objects.Schedule
-
- All Implemented Interfaces:
LifecycleSaveAware
public class Schedule extends UC4Object implements LifecycleSaveAware
Schedule.
-
-
Constructor Summary
Constructors Constructor Description Schedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTask(ScheduleTask task)
Adds a task to the Schedule.void
afterSaveObject()
Called after an object is saved.ScheduleAttributes
attributes()
Returns the attributes of this Schedule.java.lang.String
getProcess()
Returns the content of the "Process" tab.XHeader
header()
Returns the header data of this object.boolean
isExecutable()
Returnstrue
if this Object can be executed.boolean
isTurnaroundWarning()
Returns whether the turnaround warning exists in this Schedule.protected void
loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
void
removeAllTasks()
Runtime
runtime()
Returns runtime information of this job.void
setProcess(java.lang.String script)
Sets the content of the "Process" tab.protected void
storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
SyncList
syncs()
Returns aSyncList
object which contains sync conditions of this object.java.util.Iterator<ScheduleTask>
taskIterator()
Returns an iterator overScheduleTask
.int
taskSize()
Returns the number of tasks in this Schedule.ObjectValues
values()
-
Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store, validate
-
-
-
-
Method Detail
-
loadContent
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
-
syncs
public SyncList syncs()
Returns aSyncList
object which contains sync conditions of this object.- Returns:
- sync conditions
-
taskIterator
public java.util.Iterator<ScheduleTask> taskIterator()
Returns an iterator overScheduleTask
.- Returns:
- iterator over Schedule tasks.
-
attributes
public ScheduleAttributes attributes()
Returns the attributes of this Schedule.- Returns:
- Attributes of this Schedule
-
runtime
public Runtime runtime()
Returns runtime information of this job. This corresponds to the "Runtime" tab in the dialog client.- Returns:
- Runtime information
-
getProcess
public java.lang.String getProcess()
Returns the content of the "Process" tab.- Returns:
- JCL
-
addTask
public void addTask(ScheduleTask task)
Adds a task to the Schedule.- Parameters:
task
- Schedule Task
-
setProcess
public void setProcess(java.lang.String script)
Sets the content of the "Process" tab.- Parameters:
script
- Script
-
header
public XHeader header()
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
values
public ObjectValues values()
- Returns:
- Variables of this object
-
storeContent
protected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
-
taskSize
public int taskSize()
Returns the number of tasks in this Schedule.- Returns:
- Number of tasks
-
isExecutable
public boolean isExecutable()
Description copied from class:UC4Object
Returnstrue
if this Object can be executed.- Specified by:
isExecutable
in classUC4Object
- Returns:
- true if the Object can be executed, false if not.
-
isTurnaroundWarning
public boolean isTurnaroundWarning()
Returns whether the turnaround warning exists in this Schedule.- Returns:
- turnaroundWarning
-
afterSaveObject
public void afterSaveObject()
Description copied from interface:LifecycleSaveAware
Called after an object is saved.- Specified by:
afterSaveObject
in interfaceLifecycleSaveAware
-
removeAllTasks
public void removeAllTasks()
-
-