|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.common.ArrayElement
com.pcube.apps.engage.common.UsableArrayElement
com.pcube.apps.engage.policy.Package
public class Package
| Field Summary | |
|---|---|
static byte |
AGGREGATED_PERIOD_DAILY
The Package's parameter are calculated on an daily basis. |
static byte |
AGGREGATED_PERIOD_HOURLY
The Package's parameter are calculated on an hourly basis. |
static byte |
AGGREGATED_PERIOD_MONTHLY
The Package's parameter are calculated on an monthly basis. |
static byte |
AGGREGATED_PERIOD_ONE_SHOT
Subscriber's quota is renewed by an external system |
static byte |
AGGREGATED_PERIOD_WEEKLY
The Package's parameter are calculated on an weekly basis. |
static int |
MAX_NUMBER_PERIODIC_NOTIFICATION
|
static int |
MAX_NUMBER_SERVICE_RULES
|
PackageCombo |
packageCombo
|
| Constructor Summary | |
|---|---|
Package(Policy policy)
Package constructor. |
|
| Method Summary | |
|---|---|
boolean |
areLimitsSetForServiceRules()
Checks if any of this Package's service rules have set the limits by changing them from the default UNLIMITED values. |
java.lang.Object |
clone()
Producing an identical object to this object. |
void |
configureRules()
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
countAssignedPeriodicConditionalRedirect()
return HashMap |
Package |
duplicatePkg()
|
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Reading this object from a BufferedReader |
int |
getActualCounterIndex()
|
int |
getAddOnGroupIndex()
|
java.lang.String |
getAddOnGroupName()
|
int |
getAddOnPackageIndex()
|
byte |
getAggregationPeriod()
Gets this Package's aggregation period in which the parameters are accounted for. |
com.pcube.apps.engage.policy.antispam.AntiSpamSettingPerPackage |
getAntiSpamSettingPerPackage()
|
java.util.Map |
getBucketToRulesMapping()
Builds a map of bucket to rule list. |
BWControllerArray |
getBWControllers()
|
int |
getCalendarIndex()
|
Package[] |
getChildrenPackages()
|
int |
getCounterIndex()
This method will return the counter Index of the selected package |
java.lang.String |
getCounterName()
|
java.lang.String |
getDescription()
Gets this Package's description. |
BWController |
getDownstreamPrimaryBWC()
|
java.lang.String |
getName()
Gets this Package's name |
int |
getNumericId()
|
PackageCombo |
getPackageCombo()
|
int |
getPackageComboIndex()
|
int |
getPackageIndex()
|
int |
getParentPkgIndex()
|
java.lang.String |
getParentPkgName()
|
Policy |
getPolicy()
|
BWController |
getPrimaryBWC(int direction)
|
QuotaProfileData |
getProfileData()
|
QuotaBucketsArray |
getQuotaBuckets()
|
int |
getQuotaManagmentMode()
Quota Managment mode: either Exteranl or Periodical (per aggregation period) |
ServiceRule |
getRule(java.lang.String serviceRuleName)
Gets a ServiceRule which bears a specific name from this Package's ServiceRuleArray . |
java.util.Set |
getRulesBWCSet()
Builds the set of BWC that this package's rules use. |
ServiceRule |
getServiceRule(int serviceRuleIndex)
Gets the ServiceRule from this Package's ServiceRuleArray in a specific index. |
ServiceRuleArray |
getServiceRuleList()
Gets this Package's list of restrictions. |
BWController |
getUpstreamPrimaryBWC()
|
int |
getVasTableIndex()
|
boolean |
isAddOnPackage()
|
boolean |
isAssignedConditionalRedirectToRule(int notificationIndex)
return true if the notification index assigned to any rule |
boolean |
isAttackSignalingRdrEnabled()
|
boolean |
isComboPackage()
|
boolean |
isContentFilteringEnabled()
|
boolean |
isDefaultPackage()
|
boolean |
isExclusivePackageCounterEnabled()
|
boolean |
isExternalQuotaManagment()
|
boolean |
isGlobalRulePackage()
|
boolean |
isUnknownSubs()
|
int |
numOfAssignedPeriodicConditionalRedirect()
count number of unique periodic condition redirect profiles assigned to package rules. |
void |
setAddOnGroupDescription(java.lang.String newDescription)
|
void |
setAddOnGroupIndex(int newAddOnGroupIndex)
|
void |
setAddOnGroupname(java.lang.String name)
|
void |
setAggregationPeriod(byte newAggregationPeriod)
Sets the the resolution in which the parameters are accounted for. |
void |
setAttackSignalingRdrEnabled(boolean attackSignalingRdrEnabled)
|
void |
setCalendarIndex(int calendarIndex)
|
void |
setContentFilteringEnabled(boolean isContentFilteringEnabled)
|
void |
setCounterIndex(int counterIndex)
|
void |
setDescription(java.lang.String newDescription)
Sets this Package's description. |
void |
setName(java.lang.String newName)
Sets this Package's name |
void |
setPackageCombo(PackageCombo packageCombo)
|
void |
setPackageComboIndex(int packageComboIndex)
|
void |
setParentPackageIndex(int newParentPackageIndex)
|
void |
setParentPkg(java.lang.String pkgName)
|
void |
setProfileData(QuotaProfileData profileData)
attach quota profile. |
void |
setQuotaBucketsArray(QuotaBucketsProfile array)
|
void |
setQuotaManagmentMode(int mode)
set quota managment mode: must be either PERIODICAL_QUOTA_MANAGMENT or EXTERNAL_QUOTA_MANAGMENT setting quota managment to external disables the Global Package Rules (== total trafiic rules). |
void |
setServiceRule(ServiceRule serviceRule)
Adds a ServiceRule to this Package. |
void |
setServiceRuleArray(ServiceRuleArray serviceRuleArray)
|
void |
setUsed(boolean newUsed)
Setting this Package as used in the PackageArray |
void |
setVasTableIndex(int vasTableIndex)
|
void |
toStream(java.io.PrintStream out,
Formatter f)
Writing this object to a PrintStream |
java.lang.String |
toString()
Get this Package's name. |
| Methods inherited from class com.pcube.apps.engage.common.UsableArrayElement |
|---|
fromStream, isUsed, toStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte AGGREGATED_PERIOD_DAILY
public static final byte AGGREGATED_PERIOD_HOURLY
public static final byte AGGREGATED_PERIOD_MONTHLY
public static final byte AGGREGATED_PERIOD_ONE_SHOT
public static final byte AGGREGATED_PERIOD_WEEKLY
public static final int MAX_NUMBER_SERVICE_RULES
public static final int MAX_NUMBER_PERIODIC_NOTIFICATION
public PackageCombo packageCombo
| Constructor Detail |
|---|
public Package(Policy policy)
policy - the Policy to whom this Package belongs.| Method Detail |
|---|
public boolean areLimitsSetForServiceRules()
public java.lang.Object clone()
clone in class ArrayElementObject.clone()public Package duplicatePkg()
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
fromStream in interface FormattablefromStream in class UsableArrayElementin - -
the BufferedReaderf - -
the formatter used to read this object from the BufferedReader
ImportExportExceptionpublic int getActualCounterIndex()
public byte getAggregationPeriod()
AGGREGATED_PERIOD_HOURLY,
AGGREGATED_PERIOD_DAILYpublic BWControllerArray getBWControllers()
public int getCalendarIndex()
public Package[] getChildrenPackages()
public java.lang.String getCounterName()
public java.lang.String getDescription()
public BWController getDownstreamPrimaryBWC()
public java.lang.String getName()
public void setAddOnGroupname(java.lang.String name)
public java.lang.String getAddOnGroupName()
public int getAddOnPackageIndex()
public int getNumericId()
public int getPackageIndex()
public int getParentPkgIndex()
public java.lang.String getParentPkgName()
public Policy getPolicy()
public BWController getPrimaryBWC(int direction)
public QuotaBucketsArray getQuotaBuckets()
public com.pcube.apps.engage.policy.antispam.AntiSpamSettingPerPackage getAntiSpamSettingPerPackage()
public int getQuotaManagmentMode()
public ServiceRule getRule(java.lang.String serviceRuleName)
throws ItemNotFoundException
serviceRuleName - the desired ServiceRule's name
ItemNotFoundException - if no such ServiceRule exists in this Package's
ServiceRuleArraypublic java.util.Set getRulesBWCSet()
public ServiceRule getServiceRule(int serviceRuleIndex)
serviceRuleIndex - the index of the desired ServiceRule
ItemNotFoundException - if there is no ServiceRule in the desired index
(IndexOutOfBound)public ServiceRuleArray getServiceRuleList()
public BWController getUpstreamPrimaryBWC()
public int getVasTableIndex()
public boolean isDefaultPackage()
public boolean isExclusivePackageCounterEnabled()
public boolean isExternalQuotaManagment()
public boolean isUnknownSubs()
public boolean isGlobalRulePackage()
public void setAggregationPeriod(byte newAggregationPeriod)
newAggregationPeriod - the new resolutionAGGREGATED_PERIOD_HOURLY,
AGGREGATED_PERIOD_DAILYpublic void setCalendarIndex(int calendarIndex)
public void setCounterIndex(int counterIndex)
counterIndex - public int getCounterIndex()
public void setDescription(java.lang.String newDescription)
newDescription - this Package's new descriptionpublic void setAddOnGroupDescription(java.lang.String newDescription)
public void setName(java.lang.String newName)
throws DuplicateItemException
newName - the new Package name
DuplicateItemException
public void setParentPackageIndex(int newParentPackageIndex)
throws ItemNotFoundException
ItemNotFoundException
public void setAddOnGroupIndex(int newAddOnGroupIndex)
throws ItemNotFoundException
ItemNotFoundExceptionpublic int getAddOnGroupIndex()
public boolean isAddOnPackage()
public void setPackageComboIndex(int packageComboIndex)
public int getPackageComboIndex()
public boolean isComboPackage()
public void setPackageCombo(PackageCombo packageCombo)
public PackageCombo getPackageCombo()
public void setParentPkg(java.lang.String pkgName)
throws ItemNotFoundException
selectedItem -
ItemNotFoundException
public void setQuotaManagmentMode(int mode)
throws java.lang.IllegalArgumentException
mode -
java.lang.IllegalArgumentException - -
thrown if mode is not one of the two allowed modes.
public void setServiceRule(ServiceRule serviceRule)
throws DuplicateItemException,
ItemNotFoundException
serviceRule - the new ServiceRule
DuplicateItemException - if there is already a ServiceRule with duplicate items in
this Package's ServiceRuleArray
ItemNotFoundExceptionpublic void setServiceRuleArray(ServiceRuleArray serviceRuleArray)
public void setUsed(boolean newUsed)
setUsed in class UsableArrayElementnewUsed - public void setVasTableIndex(int vasTableIndex)
public void toStream(java.io.PrintStream out,
Formatter f)
toStream in interface FormattabletoStream in class UsableArrayElementout - -
the PrintStreamf - -
the formatter used to write this objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map getBucketToRulesMapping()
public boolean isAttackSignalingRdrEnabled()
public void setAttackSignalingRdrEnabled(boolean attackSignalingRdrEnabled)
public boolean isContentFilteringEnabled()
public void setContentFilteringEnabled(boolean isContentFilteringEnabled)
isContentFilteringEnabled - The isContentFilteringEnabled to set.public boolean isAssignedConditionalRedirectToRule(int notificationIndex)
notificationIndex -
public int numOfAssignedPeriodicConditionalRedirect()
public java.util.HashMap<java.lang.Integer,java.lang.Integer> countAssignedPeriodicConditionalRedirect()
public QuotaProfileData getProfileData()
public void setProfileData(QuotaProfileData profileData)
profileData - public void configureRules()
public void setQuotaBucketsArray(QuotaBucketsProfile array)
throws QuotaDataException
QuotaDataException
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||