Enum FutureRpcResults.LogLevel
- java.lang.Object
-
- java.lang.Enum<FutureRpcResults.LogLevel>
-
- org.opendaylight.serviceutils.tools.mdsal.rpc.FutureRpcResults.LogLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<FutureRpcResults.LogLevel>
- Enclosing class:
- FutureRpcResults
public static enum FutureRpcResults.LogLevel extends Enum<FutureRpcResults.LogLevel>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEBUG
ERROR
INFO
NONE
Note that when using LogLevel NONE for failures, then you should set aFutureRpcResults.FutureRpcResultBuilder.onFailure(Consumer)
which does better logging, or be 100% sure that all callers of the RPC check the returned Future RpcResult appropriately; otherwise you will lose error messages.TRACE
WARN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
log(org.slf4j.Logger logger, String format, Object... arguments)
static FutureRpcResults.LogLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static FutureRpcResults.LogLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final FutureRpcResults.LogLevel ERROR
-
WARN
public static final FutureRpcResults.LogLevel WARN
-
INFO
public static final FutureRpcResults.LogLevel INFO
-
DEBUG
public static final FutureRpcResults.LogLevel DEBUG
-
TRACE
public static final FutureRpcResults.LogLevel TRACE
-
NONE
public static final FutureRpcResults.LogLevel NONE
Note that when using LogLevel NONE for failures, then you should set aFutureRpcResults.FutureRpcResultBuilder.onFailure(Consumer)
which does better logging, or be 100% sure that all callers of the RPC check the returned Future RpcResult appropriately; otherwise you will lose error messages.
-
-
Method Detail
-
values
public static FutureRpcResults.LogLevel[] 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 (FutureRpcResults.LogLevel c : FutureRpcResults.LogLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FutureRpcResults.LogLevel 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 nameNullPointerException
- if the argument is null
-
-