Dashboard Builder Commons 6.1.0.CR1

org.jboss.dashboard.scheduler
Class SchedulerTask

java.lang.Object
  extended by org.jboss.dashboard.scheduler.SchedulerTask
All Implemented Interfaces:
Runnable

public abstract class SchedulerTask
extends Object
implements Runnable

A scheduler task is a job to be executed in the future.


Field Summary
protected  boolean fixedDelay
           
protected  long fixedDelaySeconds
           
protected  ScheduledFuture future
           
protected  boolean running
           
 
Constructor Summary
SchedulerTask()
           
 
Method Summary
 void cancel()
           
abstract  void execute()
           
static String formatTime(long millis)
           
abstract  String getDescription()
           
 Date getFireDate()
           
 long getFixedDelaySeconds()
           
abstract  String getKey()
           
 long getMillisTimeToFire()
           
 boolean isCancelled()
           
 boolean isDone()
           
 boolean isFixedDelay()
           
 boolean isMisfired()
           
 boolean isRunning()
           
 String printTimeToFire()
           
 void run()
           
 void setFixedDelaySeconds(long fixedDelaySeconds)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

future

protected ScheduledFuture future

running

protected boolean running

fixedDelay

protected boolean fixedDelay

fixedDelaySeconds

protected long fixedDelaySeconds
Constructor Detail

SchedulerTask

public SchedulerTask()
Method Detail

getKey

public abstract String getKey()

getDescription

public abstract String getDescription()

execute

public abstract void execute()

isRunning

public boolean isRunning()

isFixedDelay

public boolean isFixedDelay()

getFixedDelaySeconds

public long getFixedDelaySeconds()

setFixedDelaySeconds

public void setFixedDelaySeconds(long fixedDelaySeconds)

isCancelled

public boolean isCancelled()

isDone

public boolean isDone()

isMisfired

public boolean isMisfired()

run

public void run()
Specified by:
run in interface Runnable

cancel

public void cancel()

printTimeToFire

public String printTimeToFire()

getMillisTimeToFire

public long getMillisTimeToFire()

getFireDate

public Date getFireDate()

formatTime

public static String formatTime(long millis)

toString

public String toString()
Overrides:
toString in class Object

Dashboard Builder Commons 6.1.0.CR1

Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.