public static ModelNode createBatchRequest ( ModelNode ... steps ) { final ModelNode composite = new ModelNode ( ) ; composite . get ( OPERATION ) . set ( BATCH ) ; composite . get ( ADDRESS ) . setEmptyList ( ) ; final ModelNode stepsNode = composite . get ( BATCH_STEPS ) ; for ( ModelNode step : steps ) { if ( step != null ) { stepsNode . add ( step ) ; } } return composite ; }
Creates a batch of operations that can be atomically invoked .