|
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.policy.Policy
public class Policy
Policy is the whole set of lists, protocols, services and packages that an ISP has defined. The Policy is applied to the Policy Domain's SE boxes and sets their application's parameters to regulate the subscriber's flows.
| Field Summary | |
|---|---|
static int |
GLOBAL_RULE_PACKAGE
|
static int |
GLOBAL_RULE_PACKAGE_OLD_INDEX
|
static int |
MAX_8K_PACKAGES
Maximum number of Packages the Policy can define |
static int |
MAX_8K_POLICY_APPLY_PACKAGES
|
static int |
MAX_ADD_ON_GROUPS
|
static int |
MAX_ADD_ON_PACKAGES
|
static int |
MAX_ADD_ON_PACKAGES_PER_GROUP
|
static int |
MAX_BW_CONTROLLERS
Number of BWControllers a Package has |
static int |
MAX_BW_LIMITERS
Number of BW limiters a each direction has |
static int |
MAX_BW_LIMITERS_10G
|
static int |
MAX_CALENDARS
|
static int |
MAX_PACKAGES
|
static int |
MAX_POLICY_APPLY_PACKAGES
|
static int |
MAX_REDIRECT_STRING_ARRAY
Maximum number of redirect strings per each redirectable Protocol |
static int |
MAX_RULEFRAMES
|
static int |
MAX_SERVICES
Maximum number of Services the Policy can define |
static int |
MAX_TIMEFRAMES
Number of time frames the Policy defines |
static java.lang.String |
NO_OVERRIDE_FOR_ADD_ON_PACKAGE
|
static java.lang.String |
PLATFORM
|
static int |
PROTOCOL_SIGNATURES_REDIRECTABLE_ALL
|
static int |
PROTOCOL_SIGNATURES_REDIRECTABLE_NONE
|
static int |
PROTOCOL_SIGNATURES_REDIRECTABLE_SOME
|
static int |
UNKNOWN_SUBSCRIBER_PACKAGE
|
| Constructor Summary | |
|---|---|
Policy()
Policy Constructor. |
|
Policy(java.lang.String descriptionText)
Deprecated. use Policy()instead. |
|
| Method Summary | |
|---|---|
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Reading this object from a BufferedReader |
AddOnGroupArray |
getAddOnGroupList()
|
int |
getAddOnTemplatesSize()
|
boolean |
getAttackDetectorEnabled()
|
CalendarArray |
getCalendarList()
|
ClassificationConfiguration |
getClassificationCfg()
|
NotifyingProperties |
getCustomNonPersistentProperties()
|
com.cisco.scabb.client.ui.security.DetectorRepository |
getDetectorRepository()
|
DynamicSignaturesScript |
getDynamicSignatureScript()
|
long |
getLastApplyTimestamp()
Gets the timestamp of the time this Policy was successfully applied to any Policy Domain. |
com.pcube.apps.engage.management.PrimitiveList |
getListenersDataList()
|
PackageArray |
getPackageList()
Gets this Policy's Package list. |
float |
getPolicyPqbFormatId()
|
PolicySettings |
getPolicySettings()
Gets this Policy's settings. |
ProtocolFamiliesManager |
getProtocolFamiliesManager()
use the ProtocolFamiliesManager to manage the policy's protocol families settings |
ProtocolList |
getProtocolList()
Gets this Policy's Protocol list. |
ProtocolRedirectIndexNameArray |
getProtocolRedirectIndexNameArray()
Gets the list of the Protocols' redirect index names. |
com.pcube.apps.engage.management.RedirectSetParametersModel |
getProtocolRedirectParams(int redirectIndex)
Returns the object of the RedirectSetParametersModel. |
java.lang.String |
getProtocolRedirectString(java.lang.String protocolName)
Gets the default redirect address for the Protocol. |
java.lang.String |
getProtocolRedirectString(java.lang.String protocolName,
int redirectIndex)
Gets the redirect address for the Protocol in a certain index in its redirect String array. |
QuotaData |
getQuotaData()
|
java.lang.String |
getRealRuleFrameName(java.lang.String name)
|
java.lang.String |
getRealTimeFrameName(java.lang.String name)
Gets the predefined API name for a certain TimeFrame. |
java.lang.String[] |
getRuleFrameNames()
|
ServiceArray |
getServiceList()
Gets this Policy's Service list. |
SubNotificationArray |
getSubNotifications()
Deprecated. |
SubscriberRedirectionArray |
getSubscriberRedirectionArray()
|
java.lang.String[] |
getTimeFrameNames()
Gets the time frame names this Policy has assigned the different TimeFrames. |
TimeSlotMatrix |
getTimeSlotMatrix()
Deprecated. use CalendarArray.getDefaultTimeSlotMatrix() |
ToSMarkingArray |
getToSMarkingArray()
|
java.lang.String |
getUpgradeVersion()
|
ZoneList |
getZoneList()
Gets this Policy's IP, IP ranges and host lists array. |
boolean |
isEnableAllAttackFilters()
|
boolean |
isMirroringAttached()
|
int |
isProtocolRedirectable(java.lang.String protocolName)
Checks if a specific Protocol supports redirecting. |
void |
refreshQuotaCfg()
upon quota profile changed this method should be called. |
void |
setAddOnGroupsList(AddOnGroupArray addOnGroupList)
|
void |
setAllAttackFilterEnable(boolean b)
|
void |
setAttackDetectorEnabled(boolean enable)
|
void |
setDirty(boolean dirty)
|
static void |
setDirty(Policy policy,
boolean dirty)
Add '*' to title if policy has changed |
void |
setLastApplyTimestamp(long newLastApplyTimestamp)
Method setLastApplyTimestamp |
void |
setPackageList(PackageArray list)
Method setPackageList |
void |
setPolicyModified()
|
void |
setPolicySettings(PolicySettings settings)
Method setPolicySettings |
void |
setProtocolRedirectString(java.lang.String protocolName,
int redirectIndex,
java.lang.String value)
Sets the address to redirect a certain flow to. |
void |
setProtocolRedirectString(java.lang.String protocolName,
java.lang.String value)
Sets the default address to redirect a certain flow to. |
void |
setQuotaData(QuotaData quotaData)
Method setQuotaData |
void |
setQuotaExternalType(QuotaExternalType type)
Set Quota External Type. |
void |
setServiceList(ServiceArray list)
Method setServiceList |
void |
setSubNotifications(SubscriberRedirectionArray subNotifications)
|
void |
setTimeFrameName(int index,
java.lang.String newName)
Sets an alias for the specific TimeFrame which has a certain index. |
void |
setTimeFrameName(TimeFrame frame,
java.lang.String newName)
Sets an alias for the specific TimeFrame. |
void |
setTimeFrameNames(java.lang.String[] newNames)
set the names of all time frames. |
void |
setTimeSlotMatrix(TimeSlotMatrix newTimeSlotMatrix)
Deprecated. use CalendarArray.getDefaultTimeSlotMatrix() |
void |
setUpgradeVersion(java.lang.String upgradeVersion)
|
void |
toStream(java.io.PrintStream out,
Formatter f)
Writing this object to a PrintStream |
static void |
updateDirty(Policy policy,
boolean newDirty)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int MAX_BW_CONTROLLERS
public static int MAX_BW_LIMITERS
public static int MAX_BW_LIMITERS_10G
public static final int MAX_CALENDARS
public static final int MAX_8K_PACKAGES
public static final int MAX_8K_POLICY_APPLY_PACKAGES
public static int MAX_PACKAGES
public static int MAX_POLICY_APPLY_PACKAGES
public static int MAX_ADD_ON_GROUPS
public static int MAX_ADD_ON_PACKAGES
public static int MAX_ADD_ON_PACKAGES_PER_GROUP
public static int GLOBAL_RULE_PACKAGE
public static int GLOBAL_RULE_PACKAGE_OLD_INDEX
public static int UNKNOWN_SUBSCRIBER_PACKAGE
public static int MAX_REDIRECT_STRING_ARRAY
public static int MAX_SERVICES
public static int MAX_TIMEFRAMES
public static int MAX_RULEFRAMES
public static int PROTOCOL_SIGNATURES_REDIRECTABLE_ALL
public static int PROTOCOL_SIGNATURES_REDIRECTABLE_SOME
public static int PROTOCOL_SIGNATURES_REDIRECTABLE_NONE
public static java.lang.String PLATFORM
public static java.lang.String NO_OVERRIDE_FOR_ADD_ON_PACKAGE
| Constructor Detail |
|---|
public Policy()
public Policy(java.lang.String descriptionText)
Policy()instead.
descriptionText - | Method Detail |
|---|
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
fromStream in interface Formattablein - the BufferedReaderf - the formatter used to read this object from the BufferedReader
ImportExportExceptionpublic CalendarArray getCalendarList()
public ToSMarkingArray getToSMarkingArray()
public ClassificationConfiguration getClassificationCfg()
public com.cisco.scabb.client.ui.security.DetectorRepository getDetectorRepository()
public NotifyingProperties getCustomNonPersistentProperties()
public DynamicSignaturesScript getDynamicSignatureScript()
public long getLastApplyTimestamp()
PolicyAPIpublic com.pcube.apps.engage.management.PrimitiveList getListenersDataList()
public PackageArray getPackageList()
public int getAddOnTemplatesSize()
public AddOnGroupArray getAddOnGroupList()
public PolicySettings getPolicySettings()
public ProtocolFamiliesManager getProtocolFamiliesManager()
public ProtocolList getProtocolList()
public ProtocolRedirectIndexNameArray getProtocolRedirectIndexNameArray()
public java.lang.String getProtocolRedirectString(java.lang.String protocolName,
int redirectIndex)
throws ItemNotFoundException
protocolName - the queried ProtocolredirectIndex - the index in the redirect String array
ItemNotFoundException - if there is no such predefined Protocol in this Policy's
ProtocolArray, or if the redirect index is out of boundpublic com.pcube.apps.engage.management.RedirectSetParametersModel getProtocolRedirectParams(int redirectIndex)
redirectIndex - the index in the redirect String array
public java.lang.String getRealTimeFrameName(java.lang.String name)
throws ItemNotFoundException
name - this Policy's alias for the TimeFrame
ItemNotFoundException - if there is no such alias in this Policy
public java.lang.String getRealRuleFrameName(java.lang.String name)
throws ItemNotFoundException
ItemNotFoundExceptionpublic ServiceArray getServiceList()
public SubscriberRedirectionArray getSubscriberRedirectionArray()
public SubNotificationArray getSubNotifications()
public java.lang.String[] getTimeFrameNames()
public java.lang.String[] getRuleFrameNames()
public TimeSlotMatrix getTimeSlotMatrix()
CalendarArray.getDefaultTimeSlotMatrix()
public java.lang.String getProtocolRedirectString(java.lang.String protocolName)
throws ItemNotFoundException
protocolName - the queried Protocol
ItemNotFoundException - if there is no such predefined Protocol in this Policy's
ProtocolArraypublic ZoneList getZoneList()
public int isProtocolRedirectable(java.lang.String protocolName)
throws ItemNotFoundException
protocolName - the queried Protocol's name
ItemNotFoundException - if there is no such predefined Protocol in this Policy's
ProtocolArraypublic void setLastApplyTimestamp(long newLastApplyTimestamp)
newLastApplyTimestamp - public void setPackageList(PackageArray list)
list - public void setAddOnGroupsList(AddOnGroupArray addOnGroupList)
public void setPolicySettings(PolicySettings settings)
settings -
public void setProtocolRedirectString(java.lang.String protocolName,
int redirectIndex,
java.lang.String value)
throws ItemNotFoundException,
java.net.MalformedURLException
protocolName - the desired Protocol whose activity is to be redirectedredirectIndex - the redirect String index in the Protocol's redirect String
arrayvalue - the Protocol's new redirect address
ItemNotFoundException - if there is no such predefined Protocol in this Policy's
ProtocolArray, or if the redirect index is out of bound
java.net.MalformedURLException - if the string is an illegal URL name
public void setProtocolRedirectString(java.lang.String protocolName,
java.lang.String value)
throws ItemNotFoundException,
java.net.MalformedURLException
protocolName - the desired Protocol whose activity is to be redirectedvalue - the Protocol's new redirect address
ItemNotFoundException - if there is no such predefined Protocol in this Policy's
ProtocolArray
java.net.MalformedURLException - if the string is an illegal URL namepublic void setServiceList(ServiceArray list)
list - public void setSubNotifications(SubscriberRedirectionArray subNotifications)
SubscriberRedirectionArray - The conditionalRedirectNotificationsArray to set.
public void setTimeFrameName(int index,
java.lang.String newName)
throws ItemNotFoundException,
DuplicateItemException
index - the index of the TimeFrame to which the alias is givennewName - the alias
ItemNotFoundException - if there is no such TimeFrame
DuplicateItemException
public void setTimeFrameName(TimeFrame frame,
java.lang.String newName)
throws ItemNotFoundException,
DuplicateItemException
frame - the TimeFrame to which the alias is givennewName - the alias
ItemNotFoundException - if there is no such TimeFrame
DuplicateItemExceptionpublic void setTimeFrameNames(java.lang.String[] newNames)
newNames - public void setTimeSlotMatrix(TimeSlotMatrix newTimeSlotMatrix)
CalendarArray.getDefaultTimeSlotMatrix()
newTimeSlotMatrix -
public void toStream(java.io.PrintStream out,
Formatter f)
toStream in interface Formattableout - the PrintStreamf - the formatter used to write this objectpublic boolean getAttackDetectorEnabled()
public void setAttackDetectorEnabled(boolean enable)
public void setDirty(boolean dirty)
public void setPolicyModified()
setPolicyModified in interface IPolicyDirtyMarkerpublic boolean isMirroringAttached()
public static void updateDirty(Policy policy,
boolean newDirty)
newDirty -
public static void setDirty(Policy policy,
boolean dirty)
dirty - public float getPolicyPqbFormatId()
public void setUpgradeVersion(java.lang.String upgradeVersion)
public java.lang.String getUpgradeVersion()
public QuotaData getQuotaData()
public void setQuotaData(QuotaData quotaData)
quotaData - public void setQuotaExternalType(QuotaExternalType type)
type - public void refreshQuotaCfg()
public void setAllAttackFilterEnable(boolean b)
public boolean isEnableAllAttackFilters()
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||