me.escapeNT.pail.scheduler
Enum ServerTask.Type
java.lang.Object
java.lang.Enum<ServerTask.Type>
me.escapeNT.pail.scheduler.ServerTask.Type
- All Implemented Interfaces:
- Serializable, Comparable<ServerTask.Type>
- Enclosing class:
- ServerTask
public static enum ServerTask.Type
- extends Enum<ServerTask.Type>
The type of server task to execute.
RELOAD
public static final ServerTask.Type RELOAD
STOP
public static final ServerTask.Type STOP
SAVE_ALL
public static final ServerTask.Type SAVE_ALL
values
public static ServerTask.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ServerTask.Type c : ServerTask.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ServerTask.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getCommand
public String getCommand()
- Gets the server command to execute this action.
- Returns:
- the server command.
toString
public String toString()
- Overrides:
toString
in class Enum<ServerTask.Type>
Copyright © 2011. All Rights Reserved.