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 java.lang.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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 java.util.List QUOTA_TYPE_ENUM
fromStream
public void fromStream(java.io.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 java.lang.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(java.lang.String name)
setType
public void setType(QuotaBucket.QuotaType type)
setValue
public void setValue(long value)
toStream
public void toStream(java.io.PrintStream out,
Formatter f)
- Description copied from interface:
Formattable
- Method toStream
- Specified by:
toStream in interface Formattable
Copyright © 2013 Cisco Systems, Inc. Confidential.