JBoss LogManager 1.1.0.CR6

org.jboss.logmanager.handlers
Enum PeriodicRotatingFileHandler.Period

java.lang.Object
  extended by java.lang.Enum<PeriodicRotatingFileHandler.Period>
      extended by org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.Period
All Implemented Interfaces:
Serializable, Comparable<PeriodicRotatingFileHandler.Period>
Enclosing class:
PeriodicRotatingFileHandler

public static enum PeriodicRotatingFileHandler.Period
extends Enum<PeriodicRotatingFileHandler.Period>

Possible period values. Keep in strictly ascending order of magnitude.


Enum Constant Summary
DAY
           
HALF_DAY
           
HOUR
           
MINUTE
           
MONTH
           
NEVER
           
WEEK
           
YEAR
           
 
Method Summary
static PeriodicRotatingFileHandler.Period valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PeriodicRotatingFileHandler.Period[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MINUTE

public static final PeriodicRotatingFileHandler.Period MINUTE

HOUR

public static final PeriodicRotatingFileHandler.Period HOUR

HALF_DAY

public static final PeriodicRotatingFileHandler.Period HALF_DAY

DAY

public static final PeriodicRotatingFileHandler.Period DAY

WEEK

public static final PeriodicRotatingFileHandler.Period WEEK

MONTH

public static final PeriodicRotatingFileHandler.Period MONTH

YEAR

public static final PeriodicRotatingFileHandler.Period YEAR

NEVER

public static final PeriodicRotatingFileHandler.Period NEVER
Method Detail

values

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

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

valueOf

public static PeriodicRotatingFileHandler.Period 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

JBoss LogManager 1.1.0.CR6

Copyright © 2009 JBoss, a division of Red Hat, Inc.