Package com.adobe.granite.maintenance
Interface MaintenanceTaskInfo
-
@ProviderType public interface MaintenanceTaskInfoDescription of a maintenance task
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMaintenanceTaskInfo.TaskSchedulestatic classMaintenanceTaskInfo.TaskState
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetConfigurationPid()java.lang.StringgetDescription()A human readable descriptionMaintenanceTaskInfo.TaskStategetLastRunState()Get the state of the last run.java.util.CalendargetLastRunTime()Get the last date this task has been run.java.util.CalendargetLastSuccessTime()Get the last date this task has succeeded ornull.java.lang.StringgetName()The unique name of a maintenance task.MaintenanceTaskInfo.TaskSchedulegetSchedule()Deprecated.MaintenanceTaskInfo.TaskSchedulegetSuggestedSchedule()Get the suggested schedule.java.lang.StringgetTaskTopic()Return the topic for the task.java.lang.StringgetTitle()A human readable title.booleanisConservative()Whether a task is conservative.booleanisMandatory()Whether this task is considered to be mandatory.booleanisRunning()Whether the task is currently running.booleanisStoppable()Whether a task supports stoppingbooleansupportsThrottling()Whether a task supports throttling.
-
-
-
Method Detail
-
getName
java.lang.String getName()
The unique name of a maintenance task.
-
isStoppable
boolean isStoppable()
Whether a task supports stopping
-
isConservative
boolean isConservative()
Whether a task is conservative.
-
supportsThrottling
boolean supportsThrottling()
Whether a task supports throttling.
-
getTitle
java.lang.String getTitle()
A human readable title.
-
getDescription
java.lang.String getDescription()
A human readable description
-
getLastRunTime
java.util.Calendar getLastRunTime()
Get the last date this task has been run.
-
getLastSuccessTime
java.util.Calendar getLastSuccessTime()
Get the last date this task has succeeded ornull. SeeMaintenanceTaskInfo.TaskState.SUCCEEDED
-
getLastRunState
MaintenanceTaskInfo.TaskState getLastRunState()
Get the state of the last run.
-
isRunning
boolean isRunning()
Whether the task is currently running.
-
getSchedule
@Deprecated MaintenanceTaskInfo.TaskSchedule getSchedule()
Deprecated.This method always returnsMaintenanceTaskInfo.TaskSchedule.DAILY
-
getSuggestedSchedule
MaintenanceTaskInfo.TaskSchedule getSuggestedSchedule()
Get the suggested schedule.- Returns:
- The suggested schedule or
null
-
getTaskTopic
java.lang.String getTaskTopic()
Return the topic for the task.
-
isMandatory
boolean isMandatory()
Whether this task is considered to be mandatory.
-
getConfigurationPid
java.lang.String getConfigurationPid()
- Returns:
- - the task's configuration PID, to be used for configuration through the UI. The method returns null if there's any problem with retrieving the PID
-
-