it.jnrpe.events
Enum LogEvent

java.lang.Object
  extended by java.lang.Enum<LogEvent>
      extended by it.jnrpe.events.LogEvent
All Implemented Interfaces:
Serializable, Comparable<LogEvent>

public enum LogEvent
extends Enum<LogEvent>

All the accepted Log Event types.

Author:
Massimiliano Ziccardi

Enum Constant Summary
DEBUG
          Debug Log Event.
ERROR
          Error Log Event.
FATAL
          Fatal Log Event.
INFO
          Info Log Event.
TRACE
          Trace Log Event.
WARNING
          Warning Log Event.
 
Method Summary
static LogEvent valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LogEvent[] 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

TRACE

public static final LogEvent TRACE
Trace Log Event.


DEBUG

public static final LogEvent DEBUG
Debug Log Event.


INFO

public static final LogEvent INFO
Info Log Event.


WARNING

public static final LogEvent WARNING
Warning Log Event.


ERROR

public static final LogEvent ERROR
Error Log Event.


FATAL

public static final LogEvent FATAL
Fatal Log Event.

Method Detail

values

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

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

valueOf

public static LogEvent 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


Copyright © 2014. All Rights Reserved.