View Javadoc

1   /*
2    * Created by IntelliJ IDEA.
3    * User: Mike
4    * Date: Feb 13, 2004
5    * Time: 7:47:26 PM
6    */
7   package com.atlassian.core.task.longrunning;
8   
9   public interface LongRunningTask extends Runnable
10  {
11      public int getPercentageComplete();
12  
13      public String getName();
14  
15      /**
16       * Internationalisation key for the name of the task, so that the task's name
17       * can be displayed in the User Interface.  May be null if the task's name will not be
18       * displayed to users.
19       */
20      public String getNameKey();
21  
22      public String getCurrentStatus();
23  
24      public long getElapsedTime();
25      public String getPrettyElapsedTime();
26  
27      public long getEstimatedTimeRemaining();
28      public String getPrettyTimeRemaining();
29  
30      public boolean isComplete();
31      public boolean isSuccessful(); 
32  }