blob: d4960926ca24993ec1a2b3b6176330725c28d8cf [file] [log] [blame]
/*-
* Copyright (C) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle Berkeley
* DB Java Edition made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle Berkeley DB Java Edition for a copy of the
* license and additional information.
*/
package com.sleepycat.je.cleaner;
/**
* Used to trace the relative numbers of full INs and BIN-deltas that are
* obsolete vs active. May be used in the future for adjusting utilization.
*/
public class INSummary {
public int totalINCount;
public int totalINSize;
public int totalBINDeltaCount;
public int totalBINDeltaSize;
public int obsoleteINCount;
public int obsoleteINSize;
public int obsoleteBINDeltaCount;
public int obsoleteBINDeltaSize;
@Override
public String toString() {
StringBuilder buf = new StringBuilder();
buf.append("<INSummary totalINCount=\"");
buf.append(totalINCount);
buf.append("\" totalINSize=\"");
buf.append(totalINSize);
buf.append("\" totalBINDeltaCount=\"");
buf.append(totalBINDeltaCount);
buf.append("\" totalBINDeltaSize=\"");
buf.append(totalBINDeltaSize);
buf.append("\" obsoleteINCount=\"");
buf.append(obsoleteINCount);
buf.append("\" obsoleteINSize=\"");
buf.append(obsoleteINSize);
buf.append("\" obsoleteBINDeltaCount=\"");
buf.append(obsoleteBINDeltaCount);
buf.append("\" obsoleteBINDeltaSize=\"");
buf.append(obsoleteBINDeltaSize);
buf.append("\"/>");
return buf.toString();
}
}