Example #1
0
 private void newTr(MyMockTaskRunner newTr) {
   if (tr != null) {
     tr.stopService();
   }
   tr = newTr;
   tr.initService(getMockLockssDaemon());
   tr.startService();
 }
Example #2
0
 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();
 }