public final class Logging extends Object
Modifier and Type | Method and Description |
---|---|
static OperationFailedException |
createOperationFailure(String message)
Creates a new
OperationFailedException with the message as a model node . |
static OperationFailedException |
createOperationFailure(Throwable cause,
String message)
Creates a new
OperationFailedException with the message as a model node and the cause. |
static boolean |
requiresReload(Set<AttributeAccess.Flag> flags)
Checks to see within the flags if a reload, i.e.
|
static boolean |
requiresRestart(Set<AttributeAccess.Flag> flags)
Checks to see within the flags if a restart of any kind is required.
|
public static boolean requiresRestart(Set<AttributeAccess.Flag> flags)
flags
- the flags to checktrue
if a restart is required, otherwise false
public static boolean requiresReload(Set<AttributeAccess.Flag> flags)
flags
- the flags to checktrue
if a reload is required, otherwise false
public static OperationFailedException createOperationFailure(String message)
OperationFailedException
with the message as a model node
.message
- the message to initialize the model node
withOperationFailedException
public static OperationFailedException createOperationFailure(Throwable cause, String message)
OperationFailedException
with the message as a model node
and the cause.cause
- the cause of the errormessage
- the message to initialize the model node
withOperationFailedException
Copyright © 2023 JBoss by Red Hat. All rights reserved.