public class SimpleTriggerConfig extends TriggerConfig implements com.exalead.util.Checkable, java.io.Serializable
misfireInstruction
are available:
repeatCount
left unchanged.repeatCount
left unchanged.misfireInstruction
is set to null, when the trigger couldn't be fired, the following scheme applies
repeatCount
is set to 0, the instruction will be interpreted as fire_nowModifier and Type | Field and Description |
---|---|
int |
repeatCount |
long |
repeatInterval |
calendarName, endTime, jobGroupName, jobName, misfireInstruction, name, startTime
Constructor and Description |
---|
SimpleTriggerConfig() |
SimpleTriggerConfig(SimpleTriggerConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SimpleTriggerConfig.
|
static SimpleTriggerConfig |
fromString(java.lang.String s)
String representation of this SimpleTriggerConfig.
|
int |
getRepeatCount()
Repeats count (if <0 , no limit).
|
long |
getRepeatInterval()
Repeats interval in milliseconds.
|
SimpleTriggerConfig |
makeCopy()
Creates and returns a deep copy of this SimpleTriggerConfig.
|
static SimpleTriggerConfig |
readFrom(java.io.InputStream is)
Read this SimpleTriggerConfig from an XML fragment.
|
void |
setRepeatCount(int repeatCount)
Repeats count (if <0 , no limit).
|
void |
setRepeatInterval(long repeatInterval)
Repeats interval in milliseconds.
|
java.lang.String |
toString()
String representation of this SimpleTriggerConfig.
|
SimpleTriggerConfig |
withCalendarName(java.lang.String calendarName) |
SimpleTriggerConfig |
withEndTime(long endTime) |
SimpleTriggerConfig |
withEndTime(java.lang.Long endTime) |
SimpleTriggerConfig |
withJobGroupName(java.lang.String jobGroupName) |
SimpleTriggerConfig |
withJobName(java.lang.String jobName) |
SimpleTriggerConfig |
withMisfireInstruction(java.lang.String misfireInstruction) |
SimpleTriggerConfig |
withName(java.lang.String name) |
SimpleTriggerConfig |
withRepeatCount(int repeatCount) |
SimpleTriggerConfig |
withRepeatCount(java.lang.Integer repeatCount) |
SimpleTriggerConfig |
withRepeatInterval(long repeatInterval) |
SimpleTriggerConfig |
withRepeatInterval(java.lang.Long repeatInterval) |
SimpleTriggerConfig |
withStartTime(long startTime) |
SimpleTriggerConfig |
withStartTime(java.lang.Long startTime) |
void |
writeTo(java.io.OutputStream os)
Write this SimpleTriggerConfig as an XML fragment
|
getCalendarName, getEndTime, getJobGroupName, getJobName, getMisfireInstruction, getName, getStartTime, setCalendarName, setEndTime, setJobGroupName, setJobName, setMisfireInstruction, setName, setStartTime
public SimpleTriggerConfig()
public SimpleTriggerConfig(SimpleTriggerConfig o)
public SimpleTriggerConfig withName(java.lang.String name)
withName
in class TriggerConfig
public SimpleTriggerConfig withStartTime(long startTime)
withStartTime
in class TriggerConfig
public SimpleTriggerConfig withStartTime(java.lang.Long startTime)
withStartTime
in class TriggerConfig
public SimpleTriggerConfig withEndTime(long endTime)
withEndTime
in class TriggerConfig
public SimpleTriggerConfig withEndTime(java.lang.Long endTime)
withEndTime
in class TriggerConfig
public SimpleTriggerConfig withJobGroupName(java.lang.String jobGroupName)
withJobGroupName
in class TriggerConfig
public SimpleTriggerConfig withJobName(java.lang.String jobName)
withJobName
in class TriggerConfig
public SimpleTriggerConfig withCalendarName(java.lang.String calendarName)
withCalendarName
in class TriggerConfig
public SimpleTriggerConfig withMisfireInstruction(java.lang.String misfireInstruction)
withMisfireInstruction
in class TriggerConfig
public void setRepeatCount(int repeatCount)
public int getRepeatCount()
public SimpleTriggerConfig withRepeatCount(int repeatCount)
public SimpleTriggerConfig withRepeatCount(java.lang.Integer repeatCount)
public void setRepeatInterval(long repeatInterval)
public long getRepeatInterval()
public SimpleTriggerConfig withRepeatInterval(long repeatInterval)
public SimpleTriggerConfig withRepeatInterval(java.lang.Long repeatInterval)
public SimpleTriggerConfig makeCopy()
makeCopy
in class TriggerConfig
public static SimpleTriggerConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class TriggerConfig
javax.xml.bind.JAXBException
java.io.IOException
public static SimpleTriggerConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class TriggerConfig
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class TriggerConfig
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.