コード例 #1
0
 static void runStage(ClusterEvent event, Stage stage) throws Exception {
   StageContext context = new StageContext();
   stage.init(context);
   stage.preProcess();
   stage.process(event);
   stage.postProcess();
 }
コード例 #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();
 }