volume_summary_item = volume_summary.get(0);
Object dataSizeSumObj = volume_summary_item.get("data_size");
Long data_size_sum = Long.valueOf(dataSizeSumObj != null ? String.valueOf(dataSizeSumObj) : "0");
Object maxLimitObj = volume_summary_item.get("max_limit");
Long max_limit = Long.valueOf(maxLimitObj != null ? String.valueOf(maxLimitObj) : "0");
long storage_all_total = 0;
}
@sepTitleLabel("Title.Volume.Summary", ":")
@sepFnFormatBytesInUnit(rendererUtils, data_size_sum, 4, 3, "Decimal") @i18n("Of") @(max_limit) @i18n("TB.FrontSize")
@for (Map volume_storage_item : volume_storage_items) {
@{
Object dataSizeObj = volume_storage_item.get("data_size");
if (dataSizeObj != null) {
long dataSize = Long.valueOf(String.valueOf(dataSizeObj));
storage_all_total += dataSize;
}
}
}
@{
double ratio = Long.valueOf(storage_all_total).doubleValue() / data_size_sum.doubleValue();
}
@i18n("Title.FrontSide.Storage") : @sepFnFormatBytesInUnit(rendererUtils, data_size_sum, 4, 3, "Decimal") / @sepFnFormatBytesInUnit(rendererUtils, storage_all_total, 4, 3, "Decimal") ( 1 : @sepFnFormatDouble(rendererUtils, ratio, 2) )
@{
long total = 0;
long dataSize = 0;
}
@sepTitleLabel("Title.FrontSide.BackupTask", "")
@i18n("Column.Task") |
@i18n("Column.Pool") |
@i18n("Column.Size") |
@for (Map volume_per_task_item : volume_per_task_items) {
@{
String task = String.valueOf(volume_per_task_item.get("task"));
String pool = String.valueOf(volume_per_task_item.get("media_pool"));
Object dataSizeObj = volume_per_task_item.get("data_size");
if (dataSizeObj != null) {
dataSize = Long.valueOf(String.valueOf(dataSizeObj));
total += dataSize;
}
}
@(task) |
@(pool) |
@sepFnFormatBytes(rendererUtils, dataSize, "Decimal") |
}
|
|
@i18n("Summary.Total"): |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@sepTitleLabel("Title.FrontSide.L3.TaskType", "")
@i18n("Column.TaskType") |
@i18n("Column.Size") |
@{
String backup_type = null;
boolean print = false;
total = 0;
dataSize = 0;
}
@for (Map volume_per_task_item : volume_per_task_items) {
@{
String type = String.valueOf(volume_per_task_item.get("backup_type"));
if (!BACKUP_TYPES_L3.contains(type)) {
continue;
}
if (backup_type == null) {
backup_type = type;
}
if (!backup_type.equals(type)) {
print = true;
} else {
Object dataSizeObj = volume_per_task_item.get("data_size");
if (dataSizeObj != null) {
dataSize = Long.valueOf(String.valueOf(dataSizeObj));
total += dataSize;
}
}
}
@if(print) {
@(backup_type) |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@{
print = false;
backup_type = type;
total = dataSize;
dataSize = 0;
}
}
}
@if(backup_type != null || print) {
@(backup_type) |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
}
|
@i18n("Summary.Total"): |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@sepTitleLabel("Title.FrontSide.L3.BackupType", "")
@i18n("Column.Task") |
@i18n("Column.Size") |
@for (Map volume_per_task_item : volume_per_task_items) {
@{
String task = String.valueOf(volume_per_task_item.get("task"));
String type = String.valueOf(volume_per_task_item.get("backup_type"));
if (!BACKUP_TYPES_L3.contains(type)) {
continue;
}
Object dataSizeObj = volume_per_task_item.get("data_size");
if (dataSizeObj != null) {
dataSize = Long.valueOf(String.valueOf(dataSizeObj));
total += dataSize;
}
}
@(task) |
@sepFnFormatBytes(rendererUtils, dataSize, "Decimal") |
}
|
@i18n("Summary.Total"): |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@sepTitleLabel("Title.FrontSide.L2.TaskType", "")
@i18n("Column.TaskType") |
@i18n("Column.Size") |
@{
backup_type = null;
print = false;
total = 0;
dataSize = 0;
}
@for (Map volume_per_task_item : volume_per_task_items) {
@{
String type = String.valueOf(volume_per_task_item.get("backup_type"));
if (!BACKUP_TYPES_L2.contains(type)) {
continue;
}
if (backup_type == null) {
backup_type = type;
}
if (!backup_type.equals(type)) {
print = true;
} else {
Object dataSizeObj = volume_per_task_item.get("data_size");
if (dataSizeObj != null) {
dataSize = Long.valueOf(String.valueOf(dataSizeObj));
total += dataSize;
}
}
}
@if(print) {
@(backup_type) |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@{
print = false;
backup_type = type;
total = dataSize;
dataSize = 0;
}
}
}
@if(backup_type != null || print) {
@(backup_type) |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
}
|
@i18n("Summary.Total"): |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@sepTitleLabel("Title.FrontSide.L2.BackupType", "")
@i18n("Column.Task") |
@i18n("Column.Size") |
@for (Map volume_per_task_item : volume_per_task_items) {
@{
String task = String.valueOf(volume_per_task_item.get("task"));
String type = String.valueOf(volume_per_task_item.get("backup_type"));
if (!BACKUP_TYPES_L2.contains(type)) {
continue;
}
Object dataSizeObj = volume_per_task_item.get("data_size");
if (dataSizeObj != null) {
dataSize = Long.valueOf(String.valueOf(dataSizeObj));
total += dataSize;
}
}
@(task) |
@sepFnFormatBytes(rendererUtils, dataSize, "Decimal") |
}
|
@i18n("Summary.Total"): |
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@sepTitleLabel("Title.Storage", "")
@{
total = 0;
long all_total = 0;
List mediaPools = new ArrayList<>();
String dsTypeLast = null;
String dsSubTypeLast = null;
boolean newDsType = false;
boolean newDsSubType = false;
}
@for (Map volume_storage_item : volume_storage_items) {
@{
String pool = String.valueOf(volume_storage_item.get("media_pool"));
String ds = String.valueOf(volume_storage_item.get("datastore"));
String dsType = String.valueOf(volume_storage_item.get("data_store_type"));
String dsSubType = String.valueOf(volume_storage_item.get("generic_type"));
if (dsTypeLast == null) {
dsTypeLast = dsType;
}
if (dsSubTypeLast == null) {
dsSubTypeLast = dsSubType;
}
newDsType = dsTypeLast != null && !dsTypeLast.equals(dsType);
newDsSubType = dsSubTypeLast != null && !dsSubTypeLast.equals(dsSubType);
}
@if(newDsType || newDsSubType) {
@{
String pools = de.sep.sesam.common.util.Joiner.on(", ").join(mediaPools);
String key = "Storage." + dsSubTypeLast;
}
|
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@i18n(key) [@(pools)] |
}
@{
if (newDsType || newDsSubType) {
all_total += total;
total = 0;
mediaPools.clear();
dsTypeLast = dsType;
dsSubTypeLast = dsSubType;
} else {
if (!mediaPools.contains(pool)) {
mediaPools.add(pool);
}
}
Object dataSizeObj = volume_storage_item.get("data_size");
if (dataSizeObj != null) {
dataSize = Long.valueOf(String.valueOf(dataSizeObj));
total += dataSize;
}
}
}
@if (dsTypeLast != null && total > 0) {
@{
String pools = de.sep.sesam.common.util.Joiner.on(", ").join(mediaPools);
String key = "Storage." + dsSubTypeLast;
all_total += total;
}
|
@sepFnFormatBytes(rendererUtils, total, "Decimal") |
@i18n(key) [@(pools)] |
}
|
@i18n("Summary.Total"): |
@sepFnFormatBytes(rendererUtils, all_total, "Decimal") |
|