|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.informatica.powercenter.sdk.mapfwk.core.TimerType
public class TimerType
Represents timer type in the Timer task Timer task has following two types of settings:
Absolute time: Allows to specify the time that the Integration Service starts running the next task in the workflow. You may specify the date and time, or you can choose a user-defined workflow variable to specify the time.
Relative time: Instruct the Integration Service to wait for a specified period of time after the Timer task, the parent workflow, or the top-level workflow starts.
These settings can be specified in the Timer task by setting the appropriate time type
Timer
Field Summary | |
---|---|
static java.lang.String |
TIMER_TYPE_START_AT_ABSOLUTE_TIME
Timer type - Start at absolute time |
static java.lang.String |
TIMER_TYPE_START_AT_ABSOLUTE_VARIABLE
Timer type - Start at absolute variable |
static java.lang.String |
TIMER_TYPE_START_RELATIVE_TO_PARENT_WORKFLOW
Timer type - Start relative to parent workflow |
static java.lang.String |
TIMER_TYPE_START_RELATIVE_TO_PREVIOUSTASK
Timer type - Start relative to previous task |
static java.lang.String |
TIMER_TYPE_START_RELATIVE_TO_TOPLEVEL_WORKFLOW
Timer type - Start relative to top level workflow |
Method Summary | |
---|---|
static TimerType |
createAbsoluteTimer(java.util.Date date)
Create an instance of absolute timer. |
static TimerType |
createRelativeToPreviousTaskTimer(int days,
int hours,
int mins,
java.lang.String relativeType)
Create a relative timer |
static TimerType |
createVariableTimer(java.lang.String variable)
Create a variable timer |
java.util.Date |
getAbsoluteTime()
Get the absoluteTime. |
java.lang.String |
getDateTimeVariable()
Get the datetime variable for the timer |
int |
getDays()
get the days |
int |
getHours()
Get hours |
int |
getMins()
get mins |
java.lang.String |
getTimerType()
Get the timerType of the TimerType object |
void |
setAbsoluteTime(java.util.Date absoluteTime)
Set the absolute time of the timer |
void |
setDateTimeVariable(java.lang.String dateTimeVariable)
Set the datetime variable for the timer |
void |
setDays(int days)
Set days |
void |
setHours(int hours)
Set hours |
void |
setMins(int mins)
set mins |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TIMER_TYPE_START_AT_ABSOLUTE_TIME
public static final java.lang.String TIMER_TYPE_START_RELATIVE_TO_PREVIOUSTASK
public static final java.lang.String TIMER_TYPE_START_AT_ABSOLUTE_VARIABLE
public static final java.lang.String TIMER_TYPE_START_RELATIVE_TO_PARENT_WORKFLOW
public static final java.lang.String TIMER_TYPE_START_RELATIVE_TO_TOPLEVEL_WORKFLOW
Method Detail |
---|
public java.lang.String getTimerType()
public static TimerType createAbsoluteTimer(java.util.Date date)
date
- The date at which the timer is to start
public static TimerType createVariableTimer(java.lang.String variable)
variable
- The date/time workflow variable whose value is to be used as timer
public static TimerType createRelativeToPreviousTaskTimer(int days, int hours, int mins, java.lang.String relativeType)
days
- dayshours
- hoursmins
- minsrelativeType
- Use TimerType.TIMER_TYPE_START_RELATIVE_TO_PREVIOUSTASK, TimerType.TIMER_TYPE_START_RELATIVE_TO_PARENT_WORKFLOW
or TimerType.TIMER_TYPE_START_RELATIVE_TO_TOPLEVEL_WORKFLOW
public java.util.Date getAbsoluteTime()
public void setAbsoluteTime(java.util.Date absoluteTime)
absoluteTime
- the absoluteTime to setpublic java.lang.String getDateTimeVariable()
public void setDateTimeVariable(java.lang.String dateTimeVariable)
dateTimeVariable
- the dateTimeVariable to setpublic int getDays()
public void setDays(int days)
days
- the days to setpublic int getHours()
public void setHours(int hours)
hours
- the hours to setpublic int getMins()
public void setMins(int mins)
mins
- the mins to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |