mirror of https://github.com/apache/druid.git
NoopTask: Fix things that should be static. Add simple factory method.
This commit is contained in:
parent
3dd9a25546
commit
0ee6136ea3
|
@ -35,9 +35,9 @@ import org.joda.time.DateTime;
|
|||
public class NoopTask extends AbstractTask
|
||||
{
|
||||
private static final Logger log = new Logger(NoopTask.class);
|
||||
private static int defaultRunTime = 2500;
|
||||
private static int defaultIsReadyTime = 0;
|
||||
private static IsReadyResult defaultIsReadyResult = IsReadyResult.YES;
|
||||
private static final int defaultRunTime = 2500;
|
||||
private static final int defaultIsReadyTime = 0;
|
||||
private static final IsReadyResult defaultIsReadyResult = IsReadyResult.YES;
|
||||
|
||||
enum IsReadyResult
|
||||
{
|
||||
|
@ -139,4 +139,9 @@ public class NoopTask extends AbstractTask
|
|||
log.info("Woke up!");
|
||||
return TaskStatus.success(getId());
|
||||
}
|
||||
|
||||
public static NoopTask create()
|
||||
{
|
||||
return new NoopTask(null, 0, 0, null, null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue