|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.escapeNT.pail.scheduler.BackupTask
public class BackupTask
Class representing a scheduled world backup task.
| Constructor Summary | |
|---|---|
BackupTask(org.bukkit.World world,
boolean broadcastMessage,
boolean repeating,
long interval,
String name)
Constructs a new scheduled world backup. |
|
| Method Summary | |
|---|---|
void |
execute()
Executes this backup task. |
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 BackupTask(org.bukkit.World world,
boolean broadcastMessage,
boolean repeating,
long interval,
String name)
world - The world to back up.broadcastMessage - True if a message will be broadcast in the world during the backup.repeating - True if this task will repeat.interval - The interval between executions (or delay for a non-repeating task).| Method Detail |
|---|
public long getInterval()
ScheduledTask
getInterval in interface ScheduledTaskpublic boolean isRepeating()
ScheduledTask
isRepeating in interface ScheduledTaskpublic void execute()
execute in interface ScheduledTaskpublic boolean isEnabled()
ScheduledTask
isEnabled in interface ScheduledTaskpublic void setEnabled(boolean enabled)
ScheduledTask
setEnabled in interface ScheduledTaskenabled - True if the task will be enabled, false if disabled.public String getName()
ScheduledTask
getName in interface ScheduledTaskpublic void setName(String name)
ScheduledTask
setName in interface ScheduledTaskname - the name to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||