pusu.data
Enum PusuDatabase.ServerSetting

java.lang.Object
  extended by java.lang.Enum<PusuDatabase.ServerSetting>
      extended by pusu.data.PusuDatabase.ServerSetting
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PusuDatabase.ServerSetting>
Enclosing class:
PusuDatabase

public static enum PusuDatabase.ServerSetting
extends java.lang.Enum<PusuDatabase.ServerSetting>

Määrittelee käytettävät palvelinasetukset.


Enum Constant Summary
LOGGING_LEVEL
          Lokikirjoitustaso.
MAX_ITEMS
          Suurin mahdollinen kerralla lähetettävien artikkelien kokonaismäärä.
MIN_SEND_INTERVAL
          Lyhin mahdollinen lähetysaikaväli.
SERVER_FEED_NAME
          Palvelimen oman syötteen nimi.
 
Method Summary
 java.lang.String getSetting()
          Palauttaa asetuksen tunnisteen.
static PusuDatabase.ServerSetting valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PusuDatabase.ServerSetting[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOGGING_LEVEL

public static final PusuDatabase.ServerSetting LOGGING_LEVEL
Lokikirjoitustaso.


MAX_ITEMS

public static final PusuDatabase.ServerSetting MAX_ITEMS
Suurin mahdollinen kerralla lähetettävien artikkelien kokonaismäärä.


MIN_SEND_INTERVAL

public static final PusuDatabase.ServerSetting MIN_SEND_INTERVAL
Lyhin mahdollinen lähetysaikaväli.


SERVER_FEED_NAME

public static final PusuDatabase.ServerSetting SERVER_FEED_NAME
Palvelimen oman syötteen nimi.

Method Detail

values

public static PusuDatabase.ServerSetting[] 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 (PusuDatabase.ServerSetting c : PusuDatabase.ServerSetting.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PusuDatabase.ServerSetting valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getSetting

public java.lang.String getSetting()
Palauttaa asetuksen tunnisteen.

Returns:
Palauttaa asetuksen tunnisteen.