congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Operation$Factory.create
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.jboss.as.controller.client.Operation$Factory.create (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$Factorycreate

Javadoc

Create a simple operation with no stream attachments.

Popular methods of Operation$Factory

    Popular in Java

    • Reactive rest calls using spring rest template
    • onRequestPermissionsResult (Fragment)
    • getSharedPreferences (Context)
    • putExtra (Intent)
    • EOFException (java.io)
      Thrown when a program encounters the end of a file or stream during an input operation.
    • Collections (java.util)
      This class consists exclusively of static methods that operate on or return collections. It contains
    • CountDownLatch (java.util.concurrent)
      A synchronization aid that allows one or more threads to wait until a set of operations being perfor
    • Modifier (javassist)
      The Modifier class provides static methods and constants to decode class and member access modifiers
    • SSLHandshakeException (javax.net.ssl)
      The exception that is thrown when a handshake could not be completed successfully.
    • JTable (javax.swing)
    • Top 15 Vim Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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