public class Schedule extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DAY |
static java.lang.String |
HOUR |
static java.lang.String |
MONTH |
static int |
NEGTIVEONE |
static java.lang.String |
WEEK |
Constructor and Description |
---|
Schedule() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEndTime()
Gets the end time of the schedule
|
java.lang.String |
getEndTimeFormat()
Get the format of the end time string
|
java.lang.String |
getEndTimeLabel()
Get the label for display the end time.
|
java.lang.String |
getEndTimeZoneID()
Get the time zone id of the end time
|
int |
getInterval()
Get the interval of the schedule
|
java.lang.String |
getIntervalUnit()
Get the interval unit
|
java.lang.String |
getKarLSID()
Get the kar id associated with the workflow schedule object
|
java.lang.String |
getStartTime()
Get the start time of the schedule
|
java.lang.String |
getStartTimeFormat()
Get the format of the start time string
|
java.lang.String |
getStartTimeLabel()
Get the label for display the start time.
|
java.lang.String |
getStartTimeZoneID()
Get the time zone id for the start time
|
java.lang.String |
getWorkflowId()
Get the workflow id associated with this schedule
|
java.lang.String |
getWorkflowJobName()
Get the workflow job name.
|
Repository |
getWorkflowLocation()
Get the workflow location repository
|
java.lang.String |
getWorkflowName()
Get the workflow name associated with the schedule
|
Repository |
getWorkflowRunDestination()
Get the destination repository which will store the workflwo run
|
WorkflowRunEngine |
getWorkflowRunEngine()
Get the workflow run engine which will run the workflow
|
boolean |
isEnabled()
If the scheduler is enabled
|
boolean |
isValid()
If the schedule is valid
|
void |
setEnabled(boolean enabled)
Set the status of the schedule
|
void |
setEndTime(java.lang.String endTime)
Set the end time of the schedule
|
void |
setEndTimeFormat(java.lang.String endTimeFormat)
Set the format of the end time string
|
void |
setEndTimeLabel(java.lang.String endTimeLabel)
Set the label for end time.
|
void |
setEndTimeZoneID(java.lang.String endTimeZoneID)
Set the end time zone id.
|
void |
setInterval(java.lang.String interval)
Set the interval of the schedule
|
void |
setIntervalUnit(java.lang.String intervalUnit)
Set the interval unit
|
void |
setKarLSID(java.lang.String karLSID)
Set the kar file id
|
void |
setStartTime(java.lang.String startTime)
Set the start time of the schedule
|
void |
setStartTimeFormat(java.lang.String startTimeFormat)
Set the format of start time string.
|
void |
setStartTimeLabel(java.lang.String startTimeLabel)
Set the start time label for display
|
void |
setStartTimeZoneID(java.lang.String startTimeZoneID)
Set the time zone id for the start time
|
void |
setWorkflowId(java.lang.String workflowId)
Set the workflwo id to this schedule
|
void |
setWorkflowJobName(java.lang.String workflowJobName)
Set the workflow job name
|
void |
setWorkflowLocation(Repository workflowLocation)
Set the workflow location repository
|
void |
setWorkflowName(java.lang.String workflowName)
Set workflow name to this schedule object
|
void |
setWorkflowRunDestination(Repository workflowRunDestination)
Set the destination repository which will store the workflow run
|
void |
setWorkflowRunEngine(WorkflowRunEngine workflowRunEngine)
Set the workflow run engine which will run the workflow
|
public static final java.lang.String HOUR
public static final java.lang.String DAY
public static final java.lang.String WEEK
public static final java.lang.String MONTH
public static final int NEGTIVEONE
public Schedule()
public java.lang.String getStartTimeLabel()
public void setStartTimeLabel(java.lang.String startTimeLabel)
startTimeLabel
- the label will be displayed.public java.lang.String getStartTime()
public void setStartTime(java.lang.String startTime)
startTime
- the start time of the schedulepublic java.lang.String getStartTimeFormat()
public void setStartTimeFormat(java.lang.String startTimeFormat)
startTimeFormat
- the specified foramt for the start time stringpublic java.lang.String getStartTimeZoneID()
public void setStartTimeZoneID(java.lang.String startTimeZoneID)
startTimeZoneID
- public java.lang.String getEndTimeLabel()
public void setEndTimeLabel(java.lang.String endTimeLabel)
endTimeLabel
- public java.lang.String getEndTime()
public void setEndTime(java.lang.String endTime)
endTime
- the end time of the schedulepublic java.lang.String getEndTimeFormat()
public void setEndTimeFormat(java.lang.String endTimeFormat)
endTimeFormat
- the format of the end time string.public java.lang.String getEndTimeZoneID()
public void setEndTimeZoneID(java.lang.String endTimeZoneID)
endTimeZoneID
- the time zone id of the end time.public int getInterval()
public void setInterval(java.lang.String interval) throws java.lang.NumberFormatException
interval
- of the schedulejava.lang.NumberFormatException
public java.lang.String getIntervalUnit()
public void setIntervalUnit(java.lang.String intervalUnit) throws java.lang.Exception
intervalUnit
- the unit of the intervaljava.lang.Exception
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true if it is enabledpublic java.lang.String getWorkflowId()
public void setWorkflowId(java.lang.String workflowId)
workflowId
- public java.lang.String getWorkflowName()
public void setWorkflowName(java.lang.String workflowName)
workflowName
- public java.lang.String getKarLSID()
public void setKarLSID(java.lang.String karLSID)
karId
- id of the kar file in lsid formatpublic boolean isValid()
public java.lang.String getWorkflowJobName()
public void setWorkflowJobName(java.lang.String workflowJobName)
workflowJobName
- public WorkflowRunEngine getWorkflowRunEngine()
public void setWorkflowRunEngine(WorkflowRunEngine workflowRunEngine)
workflowRunEngine
- public Repository getWorkflowRunDestination()
public void setWorkflowRunDestination(Repository workflowRunDestination)
workflowRunDestination
- public Repository getWorkflowLocation()
public void setWorkflowLocation(Repository workflowLocation)
workflowLocation
-