Cisco Systems, Inc.

com.pcube.apps.console.quota.data
Class QuotaBucketDataPeriodical

java.lang.Object
  extended by com.pcube.apps.console.quota.data.QuotaBucketData
      extended by com.pcube.apps.console.quota.data.QuotaBucketDataLegacy
          extended by com.pcube.apps.console.quota.data.QuotaBucketDataPeriodical
All Implemented Interfaces:
Formattable, QuotaBucketInterface, java.lang.Cloneable

public class QuotaBucketDataPeriodical
extends QuotaBucketDataLegacy

Internal bucket type. Include type (session,bytes) and value. *

Author:
rbaryana

Nested Class Summary
 
Nested classes/interfaces inherited from class com.pcube.apps.console.quota.data.QuotaBucketDataLegacy
QuotaBucketDataLegacy.BucketType
 
Constructor Summary
QuotaBucketDataPeriodical(int id, java.lang.String name)
          create new bucket.
 
Method Summary
 void copyData(QuotaBucketData temp)
          run shallow copy from temp to this.
 void fromStream(java.io.BufferedReader in, Formatter f)
          Read Bucket configuration from PQB (non-Javadoc)
 long getValue()
           
 QuotaBucketData makeCopy()
          create copy of this bucket (this is a new object initited with same values)
 void setValue(long value)
          set bucket value
 void toStream(java.io.PrintStream out, Formatter f)
          Method toStream
 
Methods inherited from class com.pcube.apps.console.quota.data.QuotaBucketDataLegacy
copyInternalData, getBucketType, isL3BytesType, isSessionType, setBucketType
 
Methods inherited from class com.pcube.apps.console.quota.data.QuotaBucketData
getDescription, getId, getName, isLimited, setDescription, setMyName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuotaBucketDataPeriodical

public QuotaBucketDataPeriodical(int id,
                                 java.lang.String name)
create new bucket.

Parameters:
id - - bucket id (cannot be changed)
name - - bucket name (changeable)
Method Detail

getValue

public long getValue()
Returns:
bucket configured value

setValue

public void setValue(long value)
set bucket value

Parameters:
value -

makeCopy

public QuotaBucketData makeCopy()
create copy of this bucket (this is a new object initited with same values)

Specified by:
makeCopy in class QuotaBucketData

copyData

public void copyData(QuotaBucketData temp)
run shallow copy from temp to this.

Specified by:
copyData in class QuotaBucketData

fromStream

public void fromStream(java.io.BufferedReader in,
                       Formatter f)
                throws ImportExportException
Read Bucket configuration from PQB (non-Javadoc)

Throws:
ImportExportException
See Also:
Formattable.fromStream(java.io.BufferedReader, com.pcube.apps.engage.common.Formatter)

toStream

public void toStream(java.io.PrintStream out,
                     Formatter f)
Description copied from interface: Formattable
Method toStream


Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.