public abstract class MaintenanceUtil
extends java.lang.Object
Constructor and Description |
---|
MaintenanceUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCronExpression(int[] timeDef) |
static java.lang.String |
getCronExpression(java.lang.String time) |
static java.util.Calendar |
getNextExecutionTime(MaintenanceTaskInfo.TaskSchedule schedule,
java.lang.String startTime)
Return the next execution time for this maintenance task
If the time definitions are invalid, null is returned.
|
static java.util.Calendar |
getNextExecutionTime(java.lang.String startTime,
java.lang.String endTime)
Return the next execution time for this window.
|
static java.util.Calendar |
getNextWindowExecutionTime(Resource windowResource)
Return the next execution time for this window.
|
static boolean |
isValidTimeInterval(java.lang.String startTime,
java.lang.String endTime)
Check if the start and the end time are valid time definitions ([hour]:[minute]).
|
static int[] |
parseTime(java.lang.String value)
Check if the given time string is valid ([hour]:[minute])
|
public static boolean isValidTimeInterval(java.lang.String startTime, java.lang.String endTime)
public static int[] parseTime(java.lang.String value) throws java.lang.IllegalArgumentException
null
otherwise.java.lang.IllegalArgumentException
public static java.lang.String getCronExpression(int[] timeDef)
public static java.lang.String getCronExpression(java.lang.String time)
public static java.util.Calendar getNextExecutionTime(java.lang.String startTime, java.lang.String endTime)
startTime
- endTime
- public static java.util.Calendar getNextExecutionTime(MaintenanceTaskInfo.TaskSchedule schedule, java.lang.String startTime)
public static java.util.Calendar getNextWindowExecutionTime(Resource windowResource)
windowResource
- The window resource."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"