/** * {@inheritDoc} */ @Override protected Future<ModelNode> executeOperation(Operation executionContext) { return client.executeAsync(executionContext, null); }
@Override public AsyncFuture<ModelNode> executeAsync(Operation operation, OperationMessageHandler messageHandler) { return masterProxy.executeAsync(operation, messageHandler); }
/** * Execute an operation in another thread. * <p> * Note that associated input-streams have to be closed by the caller, after the * operation completed {@link OperationAttachments#isAutoCloseStreams()}. * * @param operation the operation to execute * @return the future result of the operation */ default AsyncFuture<ModelNode> executeAsync(Operation operation) { return executeAsync(operation, OperationMessageHandler.DISCARD); }
/** * {@inheritDoc} */ @Override protected Future<ModelNode> executeOperation(Operation executionContext) { return client.executeAsync(executionContext, null); }
/** * {@inheritDoc} */ @Override protected Future<ModelNode> executeOperation(Operation executionContext) { return client.executeAsync(executionContext, null); }
@Override public AsyncFuture<ModelNode> executeAsync(Operation operation, OperationMessageHandler messageHandler) { return masterProxy.executeAsync(operation, messageHandler); }
/** * {@inheritDoc} */ @Override protected Future<ModelNode> executeOperation(Operation executionContext) { return client.executeAsync(executionContext, null); }
/** * {@inheritDoc} */ @Override protected Future<ModelNode> executeOperation(Operation operation) { return client.executeAsync(operation, null); }
/** * {@inheritDoc} */ @Override protected Future<ModelNode> executeOperation(Operation operation) { return client.executeAsync(operation, null); }
@Override public AsyncFuture<ModelNode> executeAsync(ModelNode operation, OperationMessageHandler messageHandler) { return masterProxy.executeAsync(operation, messageHandler); }
/** * 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); }
private AsyncFuture<ModelNode> doExecuteAsync(ModelNode operation, OperationMessageHandler messageHandler) { AsyncFuture<ModelNode> task = wrapped.executeAsync(operation, messageHandler); setLastHandlerTask(task); return task; }
private AsyncFuture<ModelNode> doExecuteAsync(ModelNode operation, OperationMessageHandler messageHandler) { AsyncFuture<ModelNode> task = wrapped.executeAsync(operation, messageHandler); setLastHandlerTask(task); return task; }
/** * 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); }
private AsyncFuture<ModelNode> doExecuteAsync(Operation operation, OperationMessageHandler messageHandler) { AsyncFuture<ModelNode> task = wrapped.executeAsync(operation, messageHandler); setLastHandlerTask(task); return task; }
private AsyncFuture<ModelNode> doExecuteAsync(Operation operation, OperationMessageHandler messageHandler) { AsyncFuture<ModelNode> task = wrapped.executeAsync(operation, messageHandler); setLastHandlerTask(task); return task; }
@Override public AsyncFuture<ModelNode> executeAsync(ModelNode operation, OperationMessageHandler messageHandler) { Contexts existing = contextSelector.pushLocal(); try { return delegate.executeAsync(operation, messageHandler); } finally { contextSelector.restore(existing); } }
@Override public AsyncFuture<ModelNode> executeAsync(Operation operation, OperationMessageHandler messageHandler) { Contexts existing = contextSelector.pushLocal(); try { return delegate.executeAsync(operation, messageHandler); } finally { contextSelector.restore(existing); } }
@Override public AsyncFuture<ModelNode> executeAsync(ModelNode operation, OperationMessageHandler messageHandler) { Contexts existing = contextSelector.pushLocal(); try { return delegate.executeAsync(operation, messageHandler); } finally { contextSelector.restore(existing); } }
@Override public AsyncFuture<ModelNode> executeAsync(Operation operation, OperationMessageHandler messageHandler) { Contexts existing = contextSelector.pushLocal(); try { return delegate.executeAsync(operation, messageHandler); } finally { contextSelector.restore(existing); } }