@Test
 public void testListenerConfigured() throws Exception {
   EventHandlerService ehs = services.get(EventHandlerService.class);
   assertNotNull(ehs);
   assertTrue(SLAService.isEnabled());
   assertTrue(ehs.listEventListeners().contains(SLAJobEventListener.class.getCanonicalName()));
 }
Beispiel #2
0
 /* (non-Javadoc)
  * @see org.apache.oozie.command.RerunTransitionXCommand#performWrites()
  */
 @Override
 public void performWrites() throws CommandException {
   try {
     BatchQueryExecutor.getInstance().executeBatchInsertUpdateDelete(insertList, updateList, null);
     if (EventHandlerService.isEnabled()) {
       generateEvents(coordJob, null);
     }
   } catch (JPAExecutorException e) {
     throw new CommandException(e);
   }
 }