public void addTypeSpaces(EnumCounters<StorageType> that) { this.types.add(that); } }
public void addContent(Content c, long val) { contents.add(c, val); }
public void addTypeSpace(StorageType t, long val) { types.add(t, val); }
/** Increment the number of blocks scheduled. */ void incrementBlocksScheduled(StorageType t) { currApproxBlocksScheduled.add(t, 1); }
public void addNameSpace(long nsDelta) { this.nsSsCounts.add(Quota.NAMESPACE, nsDelta); }
public void addStorageSpace(long dsDelta) { this.nsSsCounts.add(Quota.STORAGESPACE, dsDelta); }
public void addTypeSpace(StorageType type, long delta) { this.tsCounts.add(type, delta); }
/** Increment the number of blocks scheduled. */ void incrementBlocksScheduled(StorageType t) { currApproxBlocksScheduled.add(t, 1);; }
public void addTypeSpaces(EnumCounters<StorageType> that) { this.types.add(that); } }
/** @return the sum of the values of all the counters. */ public final C sum() { final C sum = factory.newInstance(); for(C c : counts.values()) { sum.add(c); } return sum; }
/** @return the sum of the values of all the counters. */ public final C sum() { final C sum = factory.newInstance(); for(C c : counts.values()) { sum.add(c); } return sum; }