static void runStage(ClusterEvent event, Stage stage) throws Exception {
   StageContext context = new StageContext();
   stage.init(context);
   stage.preProcess();
   stage.process(event);
   stage.postProcess();
 }
Exemplo n.º 2
0
 protected void runStage(ClusterEvent event, Stage stage) {
   event.addAttribute("helixmanager", manager);
   StageContext context = new StageContext();
   stage.init(context);
   stage.preProcess();
   try {
     stage.process(event);
   } catch (Exception e) {
     e.printStackTrace();
   }
   stage.postProcess();
 }