ui.management.assignmentDataMigration.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="dataMigration" type="com.infobip.kafkistry.service.topic.DataMigration" -->
<#import "../common/util.ftl" as __util>
Total bytes all brokers
Transfer IO
Total add
Total release
Re-assigned partitions
${__util.prettyDataSize(dataMigration.totalIOBytes)}
${__util.prettyDataSize(dataMigration.totalAddBytes)}
${__util.prettyDataSize(dataMigration.totalReleaseBytes)}
${dataMigration.reAssignedPartitions}
Bytes per broker
Broker
Total IO
In IO/Add
Out IO
Release
<#assign involvedBrokers = []>
<#list dataMigration.perBrokerTotalIOBytes?keys as broker>
<#if !involvedBrokers?seq_contains(broker)><#assign involvedBrokers = involvedBrokers + [broker]>#if>
#list>
<#list dataMigration.perBrokerReleasedBytes?keys as broker>
<#if !involvedBrokers?seq_contains(broker)><#assign involvedBrokers = involvedBrokers + [broker]>#if>
#list>
<#list involvedBrokers?sort as broker>
${broker?c}
<#if dataMigration.perBrokerTotalIOBytes?api.containsKey(broker)>
${__util.prettyDataSize(dataMigration.perBrokerTotalIOBytes?api.get(broker))}
<#else>
---
#if>
<#if dataMigration.perBrokerInputBytes?api.containsKey(broker)>
${__util.prettyDataSize(dataMigration.perBrokerInputBytes?api.get(broker))}
<#else>
---
#if>
<#if dataMigration.perBrokerOutputBytes?api.containsKey(broker)>
${__util.prettyDataSize(dataMigration.perBrokerOutputBytes?api.get(broker))}
<#else>
---
#if>
<#if dataMigration.perBrokerReleasedBytes?api.containsKey(broker)>
${__util.prettyDataSize(dataMigration.perBrokerReleasedBytes?api.get(broker))}
<#else>
---
#if>
#list>
<#if involvedBrokers?size == 0>
(none)
#if>