/** Set storage type quota in a batch. (Only used by FSImage load) * * @param tsQuotas type space counts for all storage types supporting quota */ void setQuota(EnumCounters<StorageType> tsQuotas) { this.quota.setTypeSpaces(tsQuotas); }
public Builder typeQuotas(EnumCounters<StorageType> typeQuotas) { this.quota.setTypeSpaces(typeQuotas); return this; }
/** * Sets namespace and storagespace take by the directory rooted * at this INode. This should be used carefully. It does not check * for quota violations. * * @param namespace size of the directory to be set * @param storagespace storage space take by all the nodes under this directory * @param typespaces counters of storage type usage */ void setSpaceConsumed(long namespace, long storagespace, EnumCounters<StorageType> typespaces) { usage.setNameSpace(namespace); usage.setStorageSpace(storagespace); usage.setTypeSpaces(typespaces); }
public void setCounts(QuotaCounts c) { this.counts.setNameSpace(c.getNameSpace()); this.counts.setStorageSpace(c.getStorageSpace()); this.counts.setTypeSpaces(c.getTypeSpaces()); }
void setSpaceConsumed(QuotaCounts c) { usage.setNameSpace(c.getNameSpace()); usage.setStorageSpace(c.getStorageSpace()); usage.setTypeSpaces(c.getTypeSpaces()); }
/** Set storage type quota in a batch. (Only used by FSImage load) * * @param tsQuotas type space counts for all storage types supporting quota */ void setQuota(EnumCounters<StorageType> tsQuotas) { this.quota.setTypeSpaces(tsQuotas); }
/** Set storage type quota in a batch. (Only used by FSImage load) * * @param tsQuotas type space counts for all storage types supporting quota */ void setQuota(EnumCounters<StorageType> tsQuotas) { this.quota.setTypeSpaces(tsQuotas); }
public Builder typeQuotas(EnumCounters<StorageType> typeQuotas) { this.quota.setTypeSpaces(typeQuotas); return this; }
public Builder typeQuotas(EnumCounters<StorageType> typeQuotas) { this.quota.setTypeSpaces(typeQuotas); return this; }
/** * Sets namespace and storagespace take by the directory rooted * at this INode. This should be used carefully. It does not check * for quota violations. * * @param namespace size of the directory to be set * @param storagespace storage space take by all the nodes under this directory * @param typespaces counters of storage type usage */ void setSpaceConsumed(long namespace, long storagespace, EnumCounters<StorageType> typespaces) { usage.setNameSpace(namespace); usage.setStorageSpace(storagespace); usage.setTypeSpaces(typespaces); }
/** * Sets namespace and storagespace take by the directory rooted * at this INode. This should be used carefully. It does not check * for quota violations. * * @param namespace size of the directory to be set * @param storagespace storage space take by all the nodes under this directory * @param typespaces counters of storage type usage */ void setSpaceConsumed(long namespace, long storagespace, EnumCounters<StorageType> typespaces) { usage.setNameSpace(namespace); usage.setStorageSpace(storagespace); usage.setTypeSpaces(typespaces); }
void setSpaceConsumed(QuotaCounts c) { usage.setNameSpace(c.getNameSpace()); usage.setStorageSpace(c.getStorageSpace()); usage.setTypeSpaces(c.getTypeSpaces()); }
void setSpaceConsumed(QuotaCounts c) { usage.setNameSpace(c.getNameSpace()); usage.setStorageSpace(c.getStorageSpace()); usage.setTypeSpaces(c.getTypeSpaces()); }