public class PathInfoHandler extends AbstractRuntimeOnlyHandler
FileStore.getUsableSpace()| Modifier and Type | Class and Description |
|---|---|
static class |
PathInfoHandler.Builder |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeRuntimeStep(OperationContext context,
org.jboss.dmr.ModelNode operation)
Compute the file usage metric which contains the total size of a folder and the usable space (as in Java nio).
|
static void |
registerOperation(ManagementResourceRegistration resourceRegistration,
PathInfoHandler handler) |
protected boolean |
requiresRuntime(OperationContext context)
Gets whether the
OperationContext.Stage.RUNTIME step should be added to call
AbstractRuntimeOnlyHandler.executeRuntimeStep(OperationContext, ModelNode). |
execute, resourceMustExistprotected boolean requiresRuntime(OperationContext context)
AbstractRuntimeOnlyHandlerOperationContext.Stage.RUNTIME step should be added to call
AbstractRuntimeOnlyHandler.executeRuntimeStep(OperationContext, ModelNode).
This default implementation will return true for a normal server running in normal (non admin-only) mode.
If running on a host controller, it will return true if it is the active copy of the host controller subsystem.
Subclasses that perform no runtime update could override and return false. This method is
invoked during OperationContext.Stage.MODEL.requiresRuntime in class AbstractRuntimeOnlyHandlercontext - operation contexttrue if a step to invokeexecuteRuntimeStep should be added; false otherwise.OperationContext.isDefaultRequiresRuntime()protected void executeRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
executeRuntimeStep in class AbstractRuntimeOnlyHandlercontext - the operation contextoperation - the operation being executedOperationFailedExceptionFileStore.getUsableSpace()public static void registerOperation(ManagementResourceRegistration resourceRegistration, PathInfoHandler handler)
Copyright © 2018 JBoss by Red Hat. All rights reserved.