public final class ModelParser extends Object
Modifier and Type | Method and Description |
---|---|
static Filter |
parseFilter(OperationContext context,
org.jboss.dmr.ModelNode node)
Parses the node and returns the filter.
|
static Level |
parseLevel(org.jboss.dmr.ModelNode node)
Parses the value into a logging level.
|
static org.jboss.logmanager.handlers.AsyncHandler.OverflowAction |
parseOverflowAction(org.jboss.dmr.ModelNode node)
Parses the string value into an
AsyncHandler.OverflowAction . |
static long |
parseSize(org.jboss.dmr.ModelNode node)
Parses the string value of the size and returns the long value.
|
public static Filter parseFilter(OperationContext context, org.jboss.dmr.ModelNode node) throws OperationFailedException
context
- the operation contextnode
- the node to parse.OperationFailedException
- if the operation fails or is invalid.public static long parseSize(org.jboss.dmr.ModelNode node) throws OperationFailedException
node
- the node that contains the value.OperationFailedException
- if the size is invalid.public static Level parseLevel(org.jboss.dmr.ModelNode node) throws OperationFailedException
node
- the node that contains the value.OperationFailedException
- if the size is invalid.public static org.jboss.logmanager.handlers.AsyncHandler.OverflowAction parseOverflowAction(org.jboss.dmr.ModelNode node) throws OperationFailedException
AsyncHandler.OverflowAction
.node
- the node that contains the value.OperationFailedException
- if the size is invalid.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.