Package net.solarnetwork.node.service
Interface PlatformService.PlatformTaskInfo
- All Known Implementing Classes:
SimplePlatformTaskInfo
- Enclosing interface:
PlatformService
public static interface PlatformService.PlatformTaskInfo
Information about a task.
-
Method Summary
Modifier and TypeMethodDescriptionGet a message describing what the task is currently doing.doubleGet the amount of work that has been completed, as a fractional percentage between 0 and 1.Get a unique task ID for this task.getTitle()Get a title of this task.booleanGet a flag that indicates if the task is complete.booleanGet a flag that indicates if a system restart is required after the task completes.
-
Method Details
-
getTaskId
String getTaskId()Get a unique task ID for this task.- Returns:
- the unique ID
-
getTitle
String getTitle()Get a title of this task.- Returns:
- the title
-
getMessage
String getMessage()Get a message describing what the task is currently doing.- Returns:
- the message
-
getPercentComplete
double getPercentComplete()Get the amount of work that has been completed, as a fractional percentage between 0 and 1.- Returns:
- the amount of work completed, or anything < 0 if not known
-
isComplete
boolean isComplete()Get a flag that indicates if the task is complete.- Returns:
- the complete flag
-
isRestartRequired
boolean isRestartRequired()Get a flag that indicates if a system restart is required after the task completes.- Returns:
- a restart required flag
-