001/* 002 * (C) Copyright 2006-2012 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * <a href="mailto:tdelprat@nuxeo.com">Tiry</a> 016 */ 017 018package org.nuxeo.ecm.quota.size; 019 020/** 021 * helper class to transmis info about Blob changes during a transaction 022 * 023 * @author <a href="mailto:tdelprat@nuxeo.com">Tiry</a> 024 * @since 5.6 025 */ 026public class BlobSizeInfo { 027 028 protected long blobSize = 0; 029 030 protected long blobSizeDelta = 0; 031 032 public long getBlobSize() { 033 return blobSize; 034 } 035 036 public long getBlobSizeDelta() { 037 return blobSizeDelta; 038 } 039 040 @Override 041 public String toString() { 042 return "total : " + blobSize + "; delta:" + blobSizeDelta; 043 } 044}