All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.static.topic.management.assignmentsData.js Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
function getAssignmentsData(topicName) {
    let partitions = {};
    let containerId = cleanupIdHtmlSelector("assignment-data-" + topicName);
    $("#" + containerId + " .partition").each(function () {
        let partitionId = $(this).find(".partition-id").text().trim();
        let brokerIds = [];
        $(this).find(".broker-id").each(function () {
            let brokerId = parseInt($(this).text().trim());
            brokerIds.push(brokerId);
        });
        partitions[partitionId] = brokerIds;
    });
    return partitions;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy