Tabnine Logo
Operation$Factory
Code IndexAdd Tabnine to your IDE (free)

How to use
Operation$Factory
in
org.jboss.as.controller.client

Best Java code snippets using org.jboss.as.controller.client.Operation$Factory (Showing top 13 results out of 315)

origin: wildfly/wildfly-core

/**
 * Create a simple operation with no stream attachments.
 *
 * @param operation the DMR operation. Cannot be {@code null}
 *
 * @return the operation. Will not be {@code null}
 */
public static Operation create(final ModelNode operation) {
  return create(operation, Collections.<InputStream>emptyList());
}
/**
origin: org.wildfly.core/wildfly-controller

@Override
default ModelNode execute(ModelNode operation, OperationMessageHandler messageHandler) {
  return execute(Operation.Factory.create(operation), messageHandler);
}
origin: wildfly/wildfly-core

private OperationResponse runOperation(final ModelNode operation, final OperationMessageHandler messageHandler,
                    final OperationAttachments attachments, boolean inVmCall) {
  Operation op = attachments == null ? Operation.Factory.create(operation) : Operation.Factory.create(operation, attachments.getInputStreams(),
      attachments.isAutoCloseStreams());
  if (inVmCall) {
    return SecurityActions.runInVm(() -> executeInModelControllerCl(modelController::execute, op, messageHandler, ModelController.OperationTransactionControl.COMMIT));
  } else {
    return executeInModelControllerCl(modelController::execute, op, messageHandler, ModelController.OperationTransactionControl.COMMIT);
  }
}
origin: wildfly/wildfly-core

/**
 * Execute an operation in another thread.
 *
 * @param operation the operation to execute
 * @return the future result of the operation
 */
default AsyncFuture<ModelNode> executeAsync(ModelNode operation) {
  return executeAsync(Operation.Factory.create(operation), OperationMessageHandler.DISCARD);
}
origin: wildfly/wildfly-core

/**
 * Execute an operation synchronously, optionally receiving progress reports.
 *
 * @param operation the operation to execute
 * @param messageHandler the message handler to use for operation progress reporting, or {@code null} for none
 * @return the result of the operation
 * @throws IOException if an I/O error occurs while executing the operation
 */
default ModelNode execute(ModelNode operation, OperationMessageHandler messageHandler) throws IOException {
  return execute(Operation.Factory.create(operation), messageHandler);
}
origin: wildfly/wildfly-core

@Override
default ModelNode execute(ModelNode operation, OperationMessageHandler messageHandler) {
  return execute(Operation.Factory.create(operation), messageHandler);
}
origin: wildfly/wildfly-core

@Override
default ModelNode execute(ModelNode operation) {
  return execute(Operation.Factory.create(operation), OperationMessageHandler.DISCARD);
}
origin: org.wildfly.core/wildfly-controller

@Override
default ModelNode execute(ModelNode operation) {
  return execute(Operation.Factory.create(operation), OperationMessageHandler.DISCARD);
}
origin: org.wildfly.core/wildfly-controller

private OperationResponse runOperation(final ModelNode operation, final OperationMessageHandler messageHandler,
                    final OperationAttachments attachments, boolean inVmCall) {
  Operation op = attachments == null ? Operation.Factory.create(operation) : Operation.Factory.create(operation, attachments.getInputStreams(),
      attachments.isAutoCloseStreams());
  if (inVmCall) {
    return SecurityActions.runInVm(() -> executeInModelControllerCl(modelController::execute, op, messageHandler, ModelController.OperationTransactionControl.COMMIT));
  } else {
    return executeInModelControllerCl(modelController::execute, op, messageHandler, ModelController.OperationTransactionControl.COMMIT);
  }
}
origin: wildfly/wildfly-core

/**
 * Execute an operation in another thread, optionally receiving progress reports.
 *
 * @param operation the operation to execute
 * @param messageHandler the message handler to use for operation progress reporting, or {@code null} for none
 * @return the future result of the operation
 */
default AsyncFuture<ModelNode> executeAsync(ModelNode operation, OperationMessageHandler messageHandler) {
  return executeAsync(Operation.Factory.create(operation), messageHandler);
}
origin: wildfly/wildfly-core

/**
 * Execute an operation synchronously.
 *
 * @param operation the operation to execute
 * @return the result of the operation
 * @throws IOException if an I/O error occurs while executing the operation
 */
default ModelNode execute(ModelNode operation) throws IOException{
  return execute(Operation.Factory.create(operation), OperationMessageHandler.DISCARD);
}
origin: org.wildfly.core/wildfly-controller

private Operation sanitizeOperation(Operation operation) {
  ModelNode sanitized = sanitizeOperation(operation.getOperation());
  return Operation.Factory.create(sanitized, operation.getInputStreams(),
      operation.isAutoCloseStreams());
}
origin: wildfly/wildfly-core

private Operation sanitizeOperation(Operation operation) {
  ModelNode sanitized = sanitizeOperation(operation.getOperation());
  return Operation.Factory.create(sanitized, operation.getInputStreams(),
      operation.isAutoCloseStreams());
}
org.jboss.as.controller.clientOperation$Factory

Javadoc

Factory methods for creating Operations

Most used methods

  • create

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Join (org.hibernate.mapping)
  • Option (scala)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now