| 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()
BatchgetCommands in interface Batchpublic void add(BatchedCommand cmd)
Batchpublic void clear()
Batchpublic void remove(int lineNumber)
Batchpublic void set(int index,
BatchedCommand cmd)
Batchprotected void ensureRange(int lineNumber)
public int size()
Batchpublic void move(int currentIndex,
int newIndex)
Batchpublic org.jboss.dmr.ModelNode toRequest()
BatchCopyright © 2014 JBoss by Red Hat. All rights reserved.