org.x4juli.global
Class Constants

java.lang.Object
  extended byorg.x4juli.global.Constants

public final class Constants
extends java.lang.Object

Global values for x4juli.

Since:
0.5
Author:
Boris Unckel

Field Summary
static java.lang.String ABSOLUTE_FORMAT
          Key for an absolute date format.
static java.lang.String ABSOLUTE_TIME_PATTERN
          The absolute date pattern.
static java.lang.String DATE_AND_TIME_FORMAT
          Key for an date and time format.
static java.lang.String DATE_AND_TIME_PATTERN
          The date and time format pattern.
static java.lang.String DEFAULT_LOG_FILE
          Default path and prefix for any default value for an log file.
static int ERROR_COUNT_LIMIT
          Maximal errors to log.
static java.lang.String FQCN_JUL_LOGGER
          Full qualified name of the default java.util.logging.Logger class.
static java.lang.String ISO8601_FORMAT
          Key for ISO 8601 format.
static java.lang.String ISO8601_PATTERN
          The ISO 8601 date and time format pattern.
static int LEVEL_ALL
          Int value of the log level.
static int LEVEL_FINE
          Int value of the log level.
static int LEVEL_FINER
          Int value of the log level.
static int LEVEL_FINEST
          Int value of the log level.
static int LEVEL_INFO
          Int value of the log level.
static int LEVEL_OFF
          Int value of the log level.
static int LEVEL_SEVERE
          Int value of the log level.
static int LEVEL_WARNING
          Int value of the log level.
static int LINE_SEP_LEN
          Length of the line separator, provided by the system.
static java.lang.String NOT_AVAILABLE_CHAR
          When location information is not available the constant NOT_AVAILABLE_CHAR is returned.
static java.util.Random RANDOM_FOR_SEED
          A random object for generating seeds.
static java.lang.String X4JULI_PACKAGE_NAME
          The default x4juli package name.
 
Constructor Summary
private Constants()
          No instanciation wanted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SEP_LEN

public static final int LINE_SEP_LEN
Length of the line separator, provided by the system.


LEVEL_FINEST

public static final int LEVEL_FINEST
Int value of the log level.


LEVEL_FINER

public static final int LEVEL_FINER
Int value of the log level.


LEVEL_FINE

public static final int LEVEL_FINE
Int value of the log level.


LEVEL_INFO

public static final int LEVEL_INFO
Int value of the log level.


LEVEL_WARNING

public static final int LEVEL_WARNING
Int value of the log level.


LEVEL_SEVERE

public static final int LEVEL_SEVERE
Int value of the log level.


LEVEL_OFF

public static final int LEVEL_OFF
Int value of the log level.


LEVEL_ALL

public static final int LEVEL_ALL
Int value of the log level.


FQCN_JUL_LOGGER

public static final java.lang.String FQCN_JUL_LOGGER
Full qualified name of the default java.util.logging.Logger class.


X4JULI_PACKAGE_NAME

public static final java.lang.String X4JULI_PACKAGE_NAME
The default x4juli package name.

See Also:
Constant Field Values

ABSOLUTE_FORMAT

public static final java.lang.String ABSOLUTE_FORMAT
Key for an absolute date format.

See Also:
Constant Field Values

ABSOLUTE_TIME_PATTERN

public static final java.lang.String ABSOLUTE_TIME_PATTERN
The absolute date pattern.
Value is "HH:mm:ss,SSS".

See Also:
Constant Field Values

DATE_AND_TIME_FORMAT

public static final java.lang.String DATE_AND_TIME_FORMAT
Key for an date and time format.

See Also:
Constant Field Values

DATE_AND_TIME_PATTERN

public static final java.lang.String DATE_AND_TIME_PATTERN
The date and time format pattern.
Value is "dd MMM yyyy HH:mm:ss,SSS".

See Also:
Constant Field Values

ISO8601_FORMAT

public static final java.lang.String ISO8601_FORMAT
Key for ISO 8601 format.
Value is "ISO8601".

See Also:
Constant Field Values

ISO8601_PATTERN

public static final java.lang.String ISO8601_PATTERN
The ISO 8601 date and time format pattern.

See Also:
Constant Field Values

ERROR_COUNT_LIMIT

public static final int ERROR_COUNT_LIMIT
Maximal errors to log.

See Also:
Constant Field Values

NOT_AVAILABLE_CHAR

public static final java.lang.String NOT_AVAILABLE_CHAR
When location information is not available the constant NOT_AVAILABLE_CHAR is returned. Current value of this string constant is "?".

See Also:
Constant Field Values

DEFAULT_LOG_FILE

public static final java.lang.String DEFAULT_LOG_FILE
Default path and prefix for any default value for an log file. Should not be used directly without appending a unique key.


RANDOM_FOR_SEED

public static final java.util.Random RANDOM_FOR_SEED
A random object for generating seeds.

Usage:
Random myLocalRandom = new Random(Constants.RANDOM_FOR_SEED.nextLong());

Do not use it directly for generating random values.

Constructor Detail

Constants

private Constants()
No instanciation wanted.



${license_html}