Package com.uc4.api.objects
Class JobPlanEarliest
java.lang.Object
com.uc4.api.objects.JobPlanEarliest
This class can be used to specify the earliest starting time for a task in a JobPlan.
The task may be marked active or a breakpoint may be set.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JobPlanEarliest
(boolean isExternal) protected
JobPlanEarliest
(com.uc4.util.XMLDocument doc, Element task) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a deep copy of this objectint
Returns the number of days which should be added to the current date as of activation to get the earliest start time.getTime()
Returns the earliest start time.Returns the TimeZone that is to be used.boolean
isActive()
Returnstrue
if this task is active.boolean
Returnstrue
if the JobPlan should stop at this task.boolean
Returnstrue
if an earliest start check is enabled for this JobPlan task.void
setActive
(boolean active) Sets this task active or inactive.void
setBreakPoint
(boolean breakPoint) Sets or clears the breakpoint.void
setDaysAfterJobPlanActivation
(int daysAfterJobPlanActivation) Sets the number of days which should be added to the current date as of activation to get the earliest start time.void
setEarliestStart
(boolean earliestStart) Enables or disables the check for the earliest start time.void
Sets the earliest start time.void
setTimezone
(UC4TimezoneName timezone) Sets the TimeZone that is to be used.protected void
-
Constructor Details
-
JobPlanEarliest
protected JobPlanEarliest(boolean isExternal) -
JobPlanEarliest
-
-
Method Details
-
store
-
isActive
public boolean isActive()Returnstrue
if this task is active.- Returns:
- True if this task is active
-
setActive
public void setActive(boolean active) Sets this task active or inactive.- Parameters:
active
- Boolean value which true if this task should be active
-
getDaysAfterJobPlanActivation
public int getDaysAfterJobPlanActivation()Returns the number of days which should be added to the current date as of activation to get the earliest start time.- Returns:
- Number of days as of JobPlan activation
-
setDaysAfterJobPlanActivation
public void setDaysAfterJobPlanActivation(int daysAfterJobPlanActivation) Sets the number of days which should be added to the current date as of activation to get the earliest start time.- Parameters:
daysAfterJobPlanActivation
- Number of days as of JobPlan activation
-
isEarliestStart
public boolean isEarliestStart()Returnstrue
if an earliest start check is enabled for this JobPlan task.- Returns:
- True if earliest start is enabled
-
setEarliestStart
public void setEarliestStart(boolean earliestStart) Enables or disables the check for the earliest start time.- Parameters:
earliestStart
- Boolean value which true if earliest start should be checked
-
getTime
Returns the earliest start time.- Returns:
- Earliest start time
-
setTime
Sets the earliest start time. If the task is ready to start but the time specified for the earliest start has not yet been reached, this task goes into a "waiting" condition. Its status is "Waiting for start time".- Parameters:
time
- Start time
-
isBreakPoint
public boolean isBreakPoint()Returnstrue
if the JobPlan should stop at this task. To continue, the breakpoint in the JobPlan Monitor must be deleted manually.- Returns:
- True if a break point is set
-
setBreakPoint
public void setBreakPoint(boolean breakPoint) Sets or clears the breakpoint. IfbreakPoint
is set totrue
the JobPlan is stopped at this task. To continue, the breakpoint in the JobPlan Monitor must be deleted manually.- Parameters:
breakPoint
- Boolean value which true if a break point should be set
-
getTimezone
Returns the TimeZone that is to be used.- Returns:
- TimeZone
-
setTimezone
Sets the TimeZone that is to be used.- Parameters:
timezone
- TimeZone
-
copy
Creates a deep copy of this object- Returns:
- A copy of this object
-