Package org.jboss.as.controller

Examples of org.jboss.as.controller.BasicOperationResult


    public OperationResult execute(final OperationContext context, final ModelNode operation, final ResultHandler resultHandler) throws OperationFailedException {
        try {
            final ModelNode compensating = LocalDomainControllerAddHandler.getAddDomainControllerOperation(operation.get(OP_ADDR));
            context.getSubModel().get(DOMAIN_CONTROLLER).setEmptyObject();
            resultHandler.handleResultComplete();
            return new BasicOperationResult(compensating);
        }
        catch (Exception e) {
            throw new OperationFailedException(new ModelNode().set(e.getLocalizedMessage()));
        }
    }
View Full Code Here


                }
            });
        } else {
            resultHandler.handleResultComplete();
        }
        return new BasicOperationResult(compensatingOp);
    }
View Full Code Here

            resultHandler.handleResultComplete();
        }

        final ModelNode compensatingOp = operation.clone();
        compensatingOp.get(VALUE).set(oldValue);
        return new BasicOperationResult(compensatingOp);
    }
View Full Code Here

            compensating.get(MAX_THREADS).set(model.get(MAX_THREADS));
        }
        if (model.hasDefined(KEEPALIVE_TIME)) {
            compensating.get(KEEPALIVE_TIME).set(model.get(KEEPALIVE_TIME));
        }
        return new BasicOperationResult(compensating);
    }
View Full Code Here

                }
            });
        } else {
            resultHandler.handleResultComplete();
        }
        return new BasicOperationResult(compensating);
    }
View Full Code Here

        context.getSubModel().get(UNBOUNDED_QUEUE_THREAD_POOL).setEmptyObject();

        // Compensating is remove
        final ModelNode compensating = Util.getResourceRemoveOperation(operation.require(ADDRESS));
        resultHandler.handleResultComplete();
        return new BasicOperationResult(compensating);
    }
View Full Code Here

            resultHandler.handleResultComplete();
        }

        final ModelNode compensatingOp = operation.clone();
        compensatingOp.get(VALUE).set(oldValue);
        return new BasicOperationResult(compensatingOp);
    }
View Full Code Here

            resultHandler.handleResultComplete();
        }

        // Compensating is remove
        final ModelNode compensating = Util.getResourceRemoveOperation(params.getAddress());
        return new BasicOperationResult(compensating);
    }
View Full Code Here

            compensating.get(MAX_THREADS).set(model.get(MAX_THREADS));
        }
        if (model.hasDefined(KEEPALIVE_TIME)) {
            compensating.get(KEEPALIVE_TIME).set(model.get(KEEPALIVE_TIME));
        }
        return new BasicOperationResult(compensating);
    }
View Full Code Here

                }
            });
        } else {
            resultHandler.handleResultComplete();
        }
        return new BasicOperationResult(compensating);
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.BasicOperationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.