|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectme.escapeNT.pail.scheduler.ConsoleCommandTask
public class ConsoleCommandTask
Class representing a console command task.
Constructor Summary | |
---|---|
ConsoleCommandTask(String command,
boolean repeating,
long interval,
String name)
|
Method Summary | |
---|---|
void |
execute()
Executes the task by dispatching the command. |
String |
getCommand()
Gets the command to be executed. |
long |
getInterval()
Gets the time interval between executions of this task. |
String |
getName()
Gets the name of the specific task. |
boolean |
isEnabled()
Gets whether the task is enabled and running. |
boolean |
isRepeating()
Returns true if the task should be repeated indefinitely. |
void |
setEnabled(boolean enabled)
Sets whether the task is enabled and running. |
void |
setName(String name)
Sets the task name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleCommandTask(String command, boolean repeating, long interval, String name)
Method Detail |
---|
public long getInterval()
ScheduledTask
getInterval
in interface ScheduledTask
public boolean isRepeating()
ScheduledTask
isRepeating
in interface ScheduledTask
public String getCommand()
public void execute()
execute
in interface ScheduledTask
public boolean isEnabled()
ScheduledTask
isEnabled
in interface ScheduledTask
public void setEnabled(boolean enabled)
ScheduledTask
setEnabled
in interface ScheduledTask
enabled
- True if the task will be enabled, false if disabled.public String getName()
ScheduledTask
getName
in interface ScheduledTask
public void setName(String name)
ScheduledTask
setName
in interface ScheduledTask
name
- the name to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |