/** * Read the taskName to partition mapping that is being maintained by this ChangelogManager * @return TaskName to change LOG partition mapping, or an empty map if there were no messages. */ public Map<TaskName, Integer> readPartitionMapping() { LOG.debug("Reading changelog partition information"); final HashMap<TaskName, Integer> changelogMapping = new HashMap<>(); for (CoordinatorStreamMessage coordinatorStreamMessage : coordinatorStreamManager.getBootstrappedStream(SetChangelogMapping.TYPE)) { SetChangelogMapping changelogMapEntry = new SetChangelogMapping(coordinatorStreamMessage); changelogMapping.put(new TaskName(changelogMapEntry.getTaskName()), changelogMapEntry.getPartition()); LOG.debug("TaskName: {} is mapped to {}", changelogMapEntry.getTaskName(), changelogMapEntry.getPartition()); } return changelogMapping; }
/** * Read the taskName to partition mapping that is being maintained by this ChangelogManager * @return TaskName to change LOG partition mapping, or an empty map if there were no messages. */ public Map<TaskName, Integer> readPartitionMapping() { LOG.debug("Reading changelog partition information"); final HashMap<TaskName, Integer> changelogMapping = new HashMap<>(); for (CoordinatorStreamMessage coordinatorStreamMessage : coordinatorStreamManager.getBootstrappedStream(SetChangelogMapping.TYPE)) { SetChangelogMapping changelogMapEntry = new SetChangelogMapping(coordinatorStreamMessage); changelogMapping.put(new TaskName(changelogMapEntry.getTaskName()), changelogMapEntry.getPartition()); LOG.debug("TaskName: {} is mapped to {}", changelogMapEntry.getTaskName(), changelogMapEntry.getPartition()); } return changelogMapping; }
/** * Read the taskName to partition mapping that is being maintained by this ChangelogManager * @return TaskName to change LOG partition mapping, or an empty map if there were no messages. */ public Map<TaskName, Integer> readPartitionMapping() { LOG.debug("Reading changelog partition information"); final HashMap<TaskName, Integer> changelogMapping = new HashMap<>(); for (CoordinatorStreamMessage coordinatorStreamMessage : coordinatorStreamManager.getBootstrappedStream(SetChangelogMapping.TYPE)) { SetChangelogMapping changelogMapEntry = new SetChangelogMapping(coordinatorStreamMessage); changelogMapping.put(new TaskName(changelogMapEntry.getTaskName()), changelogMapEntry.getPartition()); LOG.debug("TaskName: {} is mapped to {}", changelogMapEntry.getTaskName(), changelogMapEntry.getPartition()); } return changelogMapping; }
/** * Read the taskName to partition mapping that is being maintained by this ChangelogManager * @return TaskName to change LOG partition mapping, or an empty map if there were no messages. */ public Map<TaskName, Integer> readPartitionMapping() { LOG.debug("Reading changelog partition information"); final HashMap<TaskName, Integer> changelogMapping = new HashMap<>(); for (CoordinatorStreamMessage coordinatorStreamMessage : coordinatorStreamManager.getBootstrappedStream(SetChangelogMapping.TYPE)) { SetChangelogMapping changelogMapEntry = new SetChangelogMapping(coordinatorStreamMessage); changelogMapping.put(new TaskName(changelogMapEntry.getTaskName()), changelogMapEntry.getPartition()); LOG.debug("TaskName: {} is mapped to {}", changelogMapEntry.getTaskName(), changelogMapEntry.getPartition()); } return changelogMapping; }
/** * Read the taskName to partition mapping that is being maintained by this ChangelogManager * @return TaskName to change LOG partition mapping, or an empty map if there were no messages. */ public Map<TaskName, Integer> readPartitionMapping() { LOG.debug("Reading changelog partition information"); final HashMap<TaskName, Integer> changelogMapping = new HashMap<>(); for (CoordinatorStreamMessage coordinatorStreamMessage : coordinatorStreamManager.getBootstrappedStream(SetChangelogMapping.TYPE)) { SetChangelogMapping changelogMapEntry = new SetChangelogMapping(coordinatorStreamMessage); changelogMapping.put(new TaskName(changelogMapEntry.getTaskName()), changelogMapEntry.getPartition()); LOG.debug("TaskName: {} is mapped to {}", changelogMapEntry.getTaskName(), changelogMapEntry.getPartition()); } return changelogMapping; }