public abstract class ServerTaskExecutor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerTaskExecutor.ExecutedServerRequest
The executed request.
|
static class |
ServerTaskExecutor.ServerOperation |
static class |
ServerTaskExecutor.ServerPreparedResponse
The prepared response.
|
Modifier | Constructor and Description |
---|---|
protected |
ServerTaskExecutor(OperationContext context,
Map<ServerIdentity,ServerTaskExecutor.ExecutedServerRequest> submittedTasks,
List<ServerTaskExecutor.ServerPreparedResponse> preparedResults) |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
execute(TransactionalProtocolClient.TransactionalOperationListener<ServerTaskExecutor.ServerOperation> listener,
ServerIdentity identity,
org.jboss.dmr.ModelNode operation)
Execute
|
protected boolean |
executeOperation(TransactionalProtocolClient.TransactionalOperationListener<ServerTaskExecutor.ServerOperation> listener,
TransactionalProtocolClient client,
ServerIdentity identity,
org.jboss.dmr.ModelNode operation,
OperationResultTransformer transformer)
Execute the operation.
|
int |
executeTask(TransactionalProtocolClient.TransactionalOperationListener<ServerTaskExecutor.ServerOperation> listener,
org.jboss.as.domain.controller.plan.ServerUpdateTask task)
Execute a server task.
|
protected ServerTaskExecutor(OperationContext context, Map<ServerIdentity,ServerTaskExecutor.ExecutedServerRequest> submittedTasks, List<ServerTaskExecutor.ServerPreparedResponse> preparedResults)
protected abstract int execute(TransactionalProtocolClient.TransactionalOperationListener<ServerTaskExecutor.ServerOperation> listener, ServerIdentity identity, org.jboss.dmr.ModelNode operation) throws OperationFailedException
listener
- the transactional operation listeneridentity
- the server identityoperation
- the operation-1
if the task execution failed locallyOperationFailedException
public int executeTask(TransactionalProtocolClient.TransactionalOperationListener<ServerTaskExecutor.ServerOperation> listener, org.jboss.as.domain.controller.plan.ServerUpdateTask task)
listener
- the transactional server listenertask
- the server task-1
if the task execution failed locallyprotected boolean executeOperation(TransactionalProtocolClient.TransactionalOperationListener<ServerTaskExecutor.ServerOperation> listener, TransactionalProtocolClient client, ServerIdentity identity, org.jboss.dmr.ModelNode operation, OperationResultTransformer transformer)
listener
- the transactional operation listenerclient
- the transactional protocol clientidentity
- the server identityoperation
- the operationtransformer
- the operation result transformerCopyright © 2023 JBoss by Red Hat. All rights reserved.