Constructor and Description |
---|
DefaultBatch() |
Modifier and Type | Method and Description |
---|---|
void |
add(BatchedCommand cmd)
Adds a command or an operation to the batch.
|
void |
clear()
Removes all the commands and the operations from the batch.
|
protected void |
ensureRange(int lineNumber) |
List<BatchedCommand> |
getCommands()
Returns all the commands and operations in the batch as a list.
|
void |
move(int currentIndex,
int newIndex)
Move the command or operation corresponding to the currentIndex to the newIndex position,
shifting the commands/operations in between the indexes.
|
void |
remove(int lineNumber)
Removes command or operation corresponding to its index in the list.
|
void |
set(int index,
BatchedCommand cmd)
Replaces the command or operation at the specified index with the new one.
|
int |
size()
Returns the number of the commands and operations in the batch.
|
org.jboss.dmr.ModelNode |
toRequest()
Generates a composite operation request from all the commands and operations
in the batch.
|
public List<BatchedCommand> getCommands()
Batch
getCommands
in interface Batch
public void add(BatchedCommand cmd)
Batch
public void clear()
Batch
public void remove(int lineNumber)
Batch
public void set(int index, BatchedCommand cmd)
Batch
protected void ensureRange(int lineNumber)
public int size()
Batch
public void move(int currentIndex, int newIndex)
Batch
public org.jboss.dmr.ModelNode toRequest()
Batch
Copyright © 2023 JBoss by Red Hat. All rights reserved.