me.escapeNT.pail.scheduler
Enum ServerTask.Type

java.lang.Object
  extended by java.lang.Enum<ServerTask.Type>
      extended by 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.


Enum Constant Summary
RELOAD
           
SAVE_ALL
           
STOP
           
 
Method Summary
 String getCommand()
          Gets the server command to execute this action.
 String toString()
           
static ServerTask.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServerTask.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RELOAD

public static final ServerTask.Type RELOAD

STOP

public static final ServerTask.Type STOP

SAVE_ALL

public static final ServerTask.Type SAVE_ALL
Method Detail

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.