Package com.adobe.granite.maintenance
Interface MaintenanceTaskInfo
Description of a maintenance task
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionA human readable descriptionGet the state of the last run.Get the last date this task has been run.Get the last date this task has succeeded ornull.getName()The unique name of a maintenance task.Deprecated.Get the suggested schedule.Return the topic for the task.getTitle()A human readable title.booleanWhether a task is conservative.booleanWhether this task is considered to be mandatory.booleanWhether the task is currently running.booleanWhether a task supports stoppingbooleanWhether a task supports throttling.
-
Method Details
-
getName
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
String getTitle()A human readable title. -
getDescription
String getDescription()A human readable description -
getLastRunTime
Calendar getLastRunTime()Get the last date this task has been run. -
getLastSuccessTime
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.This method always returnsMaintenanceTaskInfo.TaskSchedule.DAILY -
getSuggestedSchedule
MaintenanceTaskInfo.TaskSchedule getSuggestedSchedule()Get the suggested schedule.- Returns:
- The suggested schedule or
null
-
getTaskTopic
String getTaskTopic()Return the topic for the task. -
isMandatory
boolean isMandatory()Whether this task is considered to be mandatory. -
getConfigurationPid
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
-
getSuggestedSchedule()