com.pcube.apps.engage.policy
Class QuotaBucket
java.lang.Object
com.pcube.apps.engage.policy.QuotaBucket
- All Implemented Interfaces:
- Formattable, QuotaBucketInterface
public class QuotaBucket
- extends Object
- implements Formattable, QuotaBucketInterface
A QuotaBucket is KBytes or Sessions quota that limits services usage. A
service is mapped to a QuotaBucket through a Rule. author rafis
ByteQuota
public static final QuotaBucket.QuotaType ByteQuota
SessionQuota
public static final QuotaBucket.QuotaType SessionQuota
UntypedQuota
public static final QuotaBucket.QuotaType UntypedQuota
QUOTA_TYPE_ENUM
public static final List QUOTA_TYPE_ENUM
fromStream
public void fromStream(BufferedReader in,
Formatter f)
throws ImportExportException
- Description copied from interface:
Formattable
- Method fromStream
- Specified by:
fromStream in interface Formattable
- Throws:
ImportExportException
getId
public int getId()
- Specified by:
getId in interface QuotaBucketInterface
- Returns:
getName
public String getName()
- Specified by:
getName in interface QuotaBucketInterface
- Returns:
- Returns the name.
getType
public QuotaBucket.QuotaType getType()
getValue
public long getValue()
isLimited
public boolean isLimited()
- Specified by:
isLimited in interface QuotaBucketInterface
- Returns:
setName
public void setName(String name)
setType
public void setType(QuotaBucket.QuotaType type)
setValue
public void setValue(long value)
toStream
public void toStream(PrintStream out,
Formatter f)
- Description copied from interface:
Formattable
- Method toStream
- Specified by:
toStream in interface Formattable
Copyright © 2011 Cisco Systems, Inc. Confidential.