/** * Run c with a local mode cluster overriding the NimbusClient and DRPCClient calls. NOTE local mode override happens by default now * unless netty is turned on for the local cluster. * * @param c the callable to run in this mode * @param ttlSec the number of seconds to let the cluster run after c has completed * @return the result of calling C * * @throws Exception on any Exception. */ public static <T> T withLocalModeOverride(Callable<T> c, long ttlSec) throws Exception { return withLocalModeOverride(c, ttlSec, null); }
withLocalModeOverride(() -> { String klass = args[0]; String[] newArgs = Arrays.copyOfRange(args, 1, args.length);