|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.console.quota.data.QuotaProfileData
public abstract class QuotaProfileData
Data struct holding single quota profile. Quota Profile have a type (Gy,Gx,SCESubscriber...etc) and contains the profile buckets configuration and special porifle parameters.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PROFILE_NAME
|
| Method Summary | |
|---|---|
abstract void |
copyData(QuotaProfileData temp)
copy the all data from temp profile. |
abstract QuotaProfileData |
duplicate()
|
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Read from PQB (non-Javadoc) |
abstract QuotaVolumeAccountingUnitsData |
getAccountingUnitsData()
|
QuotaBucketData[] |
getAllBuckets()
|
QuotaBucketData[] |
getAllUsedBucketsMask()
|
QuotaServiceAttachmentList |
getAttachmentList()
|
QuotaBucketData |
getBucketById(int idx)
get bucket at index. |
int |
getBucketTypeOptimization(int id)
We return the bucket optimized type, meaning if bucket have only upload or download then we can set the bucket type to only down or up. |
QuotaBucketData |
getDownloadBucket(Service srv,
Rule rule)
|
QuotaBucketData |
getDownloadBucket(Service srv,
Rule rule,
int timeframe)
|
int |
getMyId()
|
java.lang.String |
getMyName()
|
int |
getNumberOfBuckets()
|
QuotaServiceAttachment[] |
getQuotaServiceAttachment(Service srv,
int timeFrame)
|
QuotaBucketData |
getSessionBucket(Service srv,
Rule rule)
|
QuotaBucketData |
getSessionBucket(Service srv,
Rule rule,
int timeframe)
|
QuotaInterfaceType |
getType()
|
abstract QuotaBucketData |
getUnlimitedBucket()
|
QuotaBucketData |
getUploadBucket(Service srv,
Rule rule)
|
QuotaBucketData |
getUploadBucket(Service srv,
Rule rule,
int timeframe)
|
long |
getVolumeAccountingUnits()
|
boolean |
isDefault()
|
boolean |
isExternal()
|
boolean |
isReadOnly()
read only means not allowed to be changed by user. |
void |
setMyName(java.lang.String name)
set profile name |
void |
setQuotaServiceAttachmentList(QuotaServiceAttachmentList list)
attachment list contains method copy to, but sometimes is much faster just to keep the new list. |
void |
setVolumeAccountingUnits(long volumeAccountingUnits)
Set Volume accounting Units. |
void |
toStream(java.io.PrintStream out,
Formatter f)
Write all attachments to PQB (non-Javadoc) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_PROFILE_NAME
| Method Detail |
|---|
public java.lang.String getMyName()
public void setMyName(java.lang.String name)
name - public boolean isExternal()
public QuotaBucketData getBucketById(int idx)
idx - normal buckets are 1-16
public int getNumberOfBuckets()
public QuotaBucketData[] getAllBuckets()
public QuotaInterfaceType getType()
public abstract QuotaProfileData duplicate()
public abstract void copyData(QuotaProfileData temp)
temp - public QuotaServiceAttachmentList getAttachmentList()
public void setQuotaServiceAttachmentList(QuotaServiceAttachmentList list)
list -
public QuotaServiceAttachment[] getQuotaServiceAttachment(Service srv,
int timeFrame)
public QuotaBucketData getDownloadBucket(Service srv,
Rule rule,
int timeframe)
srv -
public QuotaBucketData getDownloadBucket(Service srv,
Rule rule)
srv -
public QuotaBucketData getUploadBucket(Service srv,
Rule rule,
int timeframe)
srv -
public QuotaBucketData getUploadBucket(Service srv,
Rule rule)
srv -
public QuotaBucketData getSessionBucket(Service srv,
Rule rule)
srv -
public QuotaBucketData getSessionBucket(Service srv,
Rule rule,
int timeframe)
srv -
public boolean isReadOnly()
public int getMyId()
public abstract QuotaBucketData getUnlimitedBucket()
public QuotaBucketData[] getAllUsedBucketsMask()
public int getBucketTypeOptimization(int id)
id -
public long getVolumeAccountingUnits()
public void setVolumeAccountingUnits(long volumeAccountingUnits)
volumeAccountingUnits - public abstract QuotaVolumeAccountingUnitsData getAccountingUnitsData()
public boolean isDefault()
public void toStream(java.io.PrintStream out,
Formatter f)
toStream in interface FormattableFormattable.toStream(java.io.PrintStream, com.pcube.apps.engage.common.Formatter)
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader, com.pcube.apps.engage.common.Formatter)
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||