private void newTr(MyMockTaskRunner newTr) { if (tr != null) { tr.stopService(); } tr = newTr; tr.initService(getMockLockssDaemon()); tr.startService(); }
public void setUp() throws Exception { super.setUp(); TimeBase.setSimulated(); ConfigurationUtil.setFromArgs(SortScheduler.PARAM_OVERHEAD_LOAD, "0"); removedChunks = new ArrayList(); removedTasks = new ArrayList(); fact = new SchedFact(null); tr = new MyMockTaskRunner(fact); tr.initService(getMockLockssDaemon()); tr.startService(); }