public class CronConstraint extends java.lang.Object implements TimeConstraint
TimeConstraint limitation realized via Cron expressions.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE
Constant defining the
TimeConstraint implementation type. |
| Constructor and Description |
|---|
CronConstraint()
Mandatory for the
Externalizable instances empty constructor. |
CronConstraint(java.lang.String cronExpression)
Creates a
CronConstraint instance with given Cron expression. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCronExpression()
Returns the Cron expression with which this object is created.
|
java.lang.String |
getTextRepresentation()
Implements the text representation, which in this case is the Cron expression itself.
|
java.lang.String |
getType()
Returns the TimeConstraint implementation type:
TYPE. |
void |
readObject(java.io.InputStream iStream)
Serialization method.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream oStream)
Serialization method.
|
public static final java.lang.String TYPE
TimeConstraint implementation type.public CronConstraint()
Externalizable instances empty constructor.public CronConstraint(java.lang.String cronExpression)
CronConstraint instance with given Cron expression. Examples:
* * 9-17 ? * MON-FRI: defines work time to be on working days (Monday to Friday) between 9.00-18.00h
* * 00-01 * * ?: defines work to be time every day between 00-02 in the morning.
* * * 01 * ?: defines work time to be on the 1st day of each month .cronExpression - Cron experssionpublic void readObject(java.io.InputStream iStream)
throws java.lang.Exception
readObject in interface ExternalizableiStream - input stream.java.lang.Exception - if serialization error appears.public void writeObject(java.io.OutputStream oStream)
throws java.lang.Exception
writeObject in interface ExternalizableoStream - input stream.java.lang.Exception - if serialization error appears.public java.lang.String getType()
TYPE.getType in interface TimeConstraintpublic java.lang.String getTextRepresentation()
getTextRepresentation in interface TimeConstraintpublic java.lang.String getCronExpression()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.