Package org.netxms.client
Class BackgroundTaskInfo
java.lang.Object
org.netxms.client.BackgroundTaskInfo
State information for server-side background task
-
Constructor Summary
ConstructorsConstructorDescriptionCreate task information from NXCP message. -
Method Summary
-
Constructor Details
-
BackgroundTaskInfo
Create task information from NXCP message.- Parameters:
msg- NXCP message
-
-
Method Details
-
getState
Get task state.- Returns:
- task state
-
getProgress
public int getProgress()Get task progress in percents (0-100).- Returns:
- task progress in percents
-
getDescription
Get task description.- Returns:
- task description
-
getFailureReason
Get failure reason for failed task.- Returns:
- failure reason (empty string if task has not failed)
-
isFinished
public boolean isFinished()Check if task is finished (either successfully or not).- Returns:
- true if task is finished
-
isFailed
public boolean isFailed()Check if task has failed.- Returns:
- true if task has failed
-