Add an explicit method for starting client nodes to GridAbstractTest - Fixes
@@ -878,6 +878,23 @@ public abstract class GridAbstractTest extends JUnitAssertAware {
return (IgniteEx)startGrid(getTestIgniteInstanceName(idx));
}
+ /**
+ * Starts new client grid with given index.
+ *
+ * @param idx Index of the grid to start.
+ * @return Started grid.
+ * @throws Exception If anything failed.
+ */
+ protected IgniteEx startClientGrid(int idx) throws Exception {
+ String igniteInstanceName = getTestIgniteInstanceName(idx);
+
+ IgniteConfiguration cfg = optimize(getConfiguration(igniteInstanceName));
+
+ cfg.setClientMode(true);
+
+ return (IgniteEx)startGrid(igniteInstanceName, cfg, null);
+ }
+
/**
* Starts new grid with given configuration.
*
