Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class QuotaBucket

java.lang.Object
  extended by 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


Nested Class Summary
static class QuotaBucket.QuotaType
          Deprecated.  
 
Field Summary
static QuotaBucket.QuotaType ByteQuota
           
static java.util.List QUOTA_TYPE_ENUM
           
static QuotaBucket.QuotaType SessionQuota
           
static QuotaBucket.QuotaType UntypedQuota
           
 
Method Summary
 void fromStream(java.io.BufferedReader in, Formatter f)
          Method fromStream
 int getId()
           
 java.lang.String getName()
           
 QuotaBucket.QuotaType getType()
           
 long getValue()
           
 boolean isLimited()
           
 void setName(java.lang.String name)
           
 void setType(QuotaBucket.QuotaType type)
           
 void setValue(long value)
           
 void toStream(java.io.PrintStream out, Formatter f)
          Method toStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.