Esempio n. 1
0
 @SuppressWarnings("rawtypes")
 public TaskStatusEvent getTaskStatusEvent() {
   TaskStatusEvent event = new TaskStatusEvent();
   List<TaskExecutorStatus> statusList = new ArrayList<TaskExecutorStatus>();
   ConcurrentHashMap<Integer, TaskExecutor> taskExecutorMap =
       taskExecutorContainer.getTaskExecutorMap();
   for (TaskExecutor executor : taskExecutorMap.values()) {
     TaskExecutorStatus taskStatus = executor.getTaskExecutorStatus();
     statusList.add(taskStatus);
   }
   event.setStatusList(statusList);
   event.setSyncServerName(config.getSyncServerName());
   return event;
 }
 @PostConstruct
 public void init() {
   String type = config.getSyncServerName();
   super.setType(type);
   super.init();
 }