Interface PolicyConfigMBean
- All Known Implementing Classes:
PolicyConfig
public interface PolicyConfigMBean
This MBean interface is used to define dsl mapping for policy extended info.
-
Method Summary
Modifier and TypeMethodDescriptionDeletes a extended info.deletePolicyTolerance(Integer beId) Deletes the tolerance for a balance elementgetAlias(int dataReference) Get the alias associated with the data referenceGet the dsl (abstract format) for a extended info alias.Get the complete mapping of extended info with extended info alias as key.getPolicyTolerance(Integer beId) Returns the tolerance value configured for a balance elementbooleanReturns the policy to use when no policy counters are available.voidSets the extended info.voidsetPolicyTolerance(Integer beId, String tolerance) Sets the tolerance value for the given balance element idvoidsetSyRejectNoCounters(boolean reject) Sets the policy to use when no policy counters are available.
-
Method Details
-
getDslMappings
Get the complete mapping of extended info with extended info alias as key.- Returns:
- the Map of extended info
-
getDsl
Get the dsl (abstract format) for a extended info alias.- Parameters:
alias- extended info alias- Returns:
- dsl
-
getAlias
Get the alias associated with the data reference- Parameters:
dataReference- number to fetch the alias for- Returns:
- alias (name of preference) associated with the provided data reference
-
setDsl
Sets the extended info.- Parameters:
dataReference- value of the data reference AVP associated with this preference. Set this value to -1 if this number is not applicable.alias- extended info alias. eg. customerIddsl- dsl (abstract format). eg. getobject(customer/customerInfo)
-
deleteDsl
Deletes a extended info.- Parameters:
alias- extended info alias- Returns:
- alias if specified alias is present and deleted successfully else null
-
getPolicyTolerance
Returns the tolerance value configured for a balance element- Parameters:
beId- Balance Element Numeric Id- Returns:
- The tolerance value configured for the balance element
-
setPolicyTolerance
Sets the tolerance value for the given balance element id- Parameters:
beId- Numeric Id of the balance elementtolerance- Tolerance value to be set
-
deletePolicyTolerance
Deletes the tolerance for a balance element- Parameters:
beId- Numeric Id of the Balance Element- Returns:
- Numeric Id of the Balance Element if the given id is present and deleted successful, null otherwise
-
setSyRejectNoCounters
void setSyRejectNoCounters(boolean reject) Sets the policy to use when no policy counters are available.- Parameters:
reject- Boolean to indicate whether to return a successful SLA.
-
getSyRejectNoCounters
boolean getSyRejectNoCounters()Returns the policy to use when no policy counters are available.- Returns:
- Boolean to indicate whether to return a successful SLA.
-