/** * Start test grid with specified options. * * @param builtin {@code True} if keys are built in java types. * @param noKeyCls {@code True} if keys classes are not on class path. * @param noValCls {@code True} if values classes are not on class path. * @param trn {@code True} if cache should be started in transactional mode. * @param threshold Load batch size. * @throws Exception If failed to start grid. */ protected void startTestGrid(boolean builtin, boolean noKeyCls, boolean noValCls, boolean trn, int threshold) throws Exception { builtinKeys = builtin; noKeyClasses = noKeyCls; noValClasses = noValCls; transactional = trn; parallelLoadThreshold = threshold; startGrid(); }