javax.slee.facilities
Class Level

java.lang.Object
  extended by javax.slee.facilities.Level
All Implemented Interfaces:
java.io.Serializable

Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

public final class Level
extends java.lang.Object
implements java.io.Serializable

This class defines an enumerated type for the alarm and trace levels supported by the Alarm Facility and Trace Facility. The class is based on the Java Logging API included with J2SE 1.4.

A singleton instance of each enumerated value is guaranteed (via an implementation of readResolve() - refer java.io.Serializable), so that equality tests using == are always evaluated correctly. (This equality test is only guaranteed if this class is loaded in the application's boot class path, rather than dynamically loaded at runtime.)

The levels in descending order are:

See Also:
Serialized Form

Field Summary
static Level CONFIG
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static Level FINE
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static Level FINER
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static Level FINEST
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static Level INFO
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static int LEVEL_CONFIG
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static int LEVEL_FINE
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static int LEVEL_FINER
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static int LEVEL_FINEST
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static int LEVEL_INFO
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static int LEVEL_OFF
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static int LEVEL_SEVERE
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static int LEVEL_WARNING
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static Level OFF
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static Level SEVERE
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
static Level WARNING
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Deprecated. Compare this level for equality with another.
static Level fromInt(int level)
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 int hashCode()
          Deprecated. Get a hash code value for this level.
 boolean isConfig()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 boolean isFine()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 boolean isFiner()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 boolean isFinest()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 boolean isHigherLevel(Level other)
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 boolean isMinor()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 boolean isOff()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 boolean isSevere()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 boolean isWarning()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 int toInt()
          Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
 java.lang.String toString()
          Deprecated. Get the textual representation of the Level object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LEVEL_OFF

public static final int LEVEL_OFF
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
An integer representation of OFF.

See Also:
Constant Field Values

LEVEL_SEVERE

public static final int LEVEL_SEVERE
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
An integer representation of SEVERE.

See Also:
Constant Field Values

LEVEL_WARNING

public static final int LEVEL_WARNING
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
An integer representation of WARNING.

See Also:
Constant Field Values

LEVEL_INFO

public static final int LEVEL_INFO
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
An integer representation of INFO.

See Also:
Constant Field Values

LEVEL_CONFIG

public static final int LEVEL_CONFIG
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
An integer representation of CONFIG.

See Also:
Constant Field Values

LEVEL_FINE

public static final int LEVEL_FINE
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
An integer representation of FINE.

See Also:
Constant Field Values

LEVEL_FINER

public static final int LEVEL_FINER
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
An integer representation of FINER.

See Also:
Constant Field Values

LEVEL_FINEST

public static final int LEVEL_FINEST
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
An integer representation of FINEST.

See Also:
Constant Field Values

OFF

public static final Level OFF
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
Level for maximum filtering. Notifications cannot be generated using this level.


SEVERE

public static final Level SEVERE
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
Level for messages indicating a severe failure.


WARNING

public static final Level WARNING
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
Level for messages indicating warning conditions.


INFO

public static final Level INFO
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
Level for information messages.


CONFIG

public static final Level CONFIG
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
Level for configuration messages.


FINE

public static final Level FINE
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
Level for basic debug messages.


FINER

public static final Level FINER
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
Level for moderately detailed messages.


FINEST

public static final Level FINEST
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.
Level for highly detailed messages. This is the lowest level.

Method Detail

fromInt

public static Level fromInt(int level)
                     throws java.lang.IllegalArgumentException
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Get an Level object from an integer value.

Parameters:
level - the level as an integer.
Returns:
an Level object corresponding to level.
Throws:
java.lang.IllegalArgumentException - if level is not a valid level value.

toInt

public int toInt()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Get an integer value representation for this Level object.

Returns:
an integer value representation for this Level object.

isOff

public boolean isOff()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents the OFF level.

This method is effectively equivalent to the conditional test: (this == OFF), ie. the code:

    if (level.isOff()) ...

is interchangeable with the code:

   if (level == Level.OFF) ...

Returns:
true if this object represents the OFF level, false otherwise.

isSevere

public boolean isSevere()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents the SEVERE level.

This method is effectively equivalent to the conditional test: (this == SEVERE), ie. the code:

    if (level.isSevere()) ...

is interchangeable with the code:

   if (level == Level.SEVERE) ...

Returns:
true if this object represents the SEVERE level, false otherwise.

isWarning

public boolean isWarning()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents the WARNING level.

This method is effectively equivalent to the conditional test: (this == WARNING), ie. the code:

    if (level.isWarning()) ...

is interchangeable with the code:

   if (level == Level.WARNING) ...

Returns:
true if this object represents the WARNING level, false otherwise.

isMinor

public boolean isMinor()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents the INFO level.

This method is effectively equivalent to the conditional test: (this == INFO), ie. the code:

    if (level.isMinor()) ...

is interchangeable with the code:

   if (level == Level.INFO) ...

Returns:
true if this object represents the INFO level, false otherwise.

isConfig

public boolean isConfig()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents the CONFIG level.

This method is effectively equivalent to the conditional test: (this == CONFIG), ie. the code:

    if (level.isConfig()) ...

is interchangeable with the code:

   if (level == Level.CONFIG) ...

Returns:
true if this object represents the CONFIG level, false otherwise.

isFine

public boolean isFine()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents the FINE level.

This method is effectively equivalent to the conditional test: (this == FINE), ie. the code:

    if (level.isFine()) ...

is interchangeable with the code:

   if (level == Level.FINE) ...

Returns:
true if this object represents the FINE level, false otherwise.

isFiner

public boolean isFiner()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents the FINER level.

This method is effectively equivalent to the conditional test: (this == FINER), ie. the code:

    if (level.isFiner()) ...

is interchangeable with the code:

   if (level == Level.FINER) ...

Returns:
true if this object represents the FINER level, false otherwise.

isFinest

public boolean isFinest()
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents the FINEST level.

This method is effectively equivalent to the conditional test: (this == FINEST), ie. the code:

    if (level.isFinest()) ...

is interchangeable with the code:

   if (level == Level.FINEST) ...

Returns:
true if this object represents the FINEST level, false otherwise.

isHigherLevel

public boolean isHigherLevel(Level other)
                      throws java.lang.NullPointerException
Deprecated. Trace and alarm levels now defined in TraceLevel and AlarmLevel.

Determine if this Level object represents a level that is higher or more severe that some other Level object. For the purposes of the comparison OFF is considered a higher level than SEVERE.

Parameters:
other - the Level object to compare this with.
Returns:
true if the level represented by this Level object is a higher level than the level represented by the specified Level object, false otherwise.
Throws:
java.lang.NullPointerException - if other is null.

equals

public boolean equals(java.lang.Object obj)
Deprecated. 
Compare this level for equality with another.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare this with.
Returns:
true if obj is an instance of this class representing the same level as this, false otherwise.

hashCode

public int hashCode()
Deprecated. 
Get a hash code value for this level.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value.

toString

public java.lang.String toString()
Deprecated. 
Get the textual representation of the Level object.

Overrides:
toString in class java.lang.Object
Returns:
the textual representation of the Level object.


Copyright © 2008. All Rights Reserved.